mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-01-12 12:30:31 +00:00
Fix Bug #14879 : Double-Lo-Res Graphics colours not correct
This commit is contained in:
parent
59b07f18ee
commit
1e5d3f827a
@ -1510,16 +1510,23 @@ bool UpdateLoResCell (int x, int y, int xpixel, int ypixel, int offset)
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
||||
#define ROL_NIB(x) ( (((x)<<1)&0xF) | (((x)>>3)&1) )
|
||||
|
||||
bool UpdateDLoResCell (int x, int y, int xpixel, int ypixel, int offset)
|
||||
{
|
||||
BYTE auxval = *(g_pTextBank1 +offset);
|
||||
BYTE mainval = *(g_pTextBank0+offset);
|
||||
BYTE auxval = *(g_pTextBank1 + offset);
|
||||
BYTE mainval = *(g_pTextBank0 + offset);
|
||||
|
||||
if ( (auxval != *(vidlastmem+offset)) ||
|
||||
(mainval != *(vidlastmem+offset+0x400)) ||
|
||||
g_VideoForceFullRedraw
|
||||
)
|
||||
{
|
||||
const BYTE auxval_h = auxval >> 4;
|
||||
const BYTE auxval_l = auxval & 0xF;
|
||||
auxval = (ROL_NIB(auxval_h)<<4) | ROL_NIB(auxval_l); // Fix Bug #14879
|
||||
|
||||
CopySource( xpixel,ypixel , 7,8,SRCOFFS_LORES+((x & 1) << 1),((auxval & 0xF) << 4));
|
||||
CopySource( xpixel,ypixel+8, 7,8,SRCOFFS_LORES+((x & 1) << 1),(auxval & 0xF0));
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user