Big-endian fixes for Sega System16A and d_tecmo.cpp (lantus)
This commit is contained in:
parent
0ff528c4d2
commit
3c061b62d3
|
@ -437,7 +437,10 @@ static inline void palette_write(INT32 offset)
|
|||
UINT8 r,g,b;
|
||||
|
||||
data = *((UINT16*)(DrvPalRAM + (offset & ~1)));
|
||||
|
||||
#ifdef LSB_FIRST
|
||||
data = (data << 8) | (data >> 8);
|
||||
#endif
|
||||
|
||||
r = (data >> 4) & 0x0f;
|
||||
g = (data >> 0) & 0x0f;
|
||||
|
|
|
@ -2993,8 +2993,8 @@ inline static void System16AUpdateTileValues()
|
|||
for (i = 0; i < 2; i++) {
|
||||
System16OldPage[i] = System16Page[i];
|
||||
System16Page[i] = (System16ScreenFlip) ? BURN_ENDIAN_SWAP_INT16(TextRam[0xe8e/2 - i]) : BURN_ENDIAN_SWAP_INT16(TextRam[0xe9e/2 - i]);
|
||||
System16ScrollX[i] = TextRam[0xff8/2 + i] & 0x1ff;
|
||||
System16ScrollY[i] = TextRam[0xf24/2 + i] & 0x0ff;
|
||||
System16ScrollX[i] = BURN_ENDIAN_SWAP_INT16(TextRam[0xff8/2 + i]) & 0x1ff;
|
||||
System16ScrollY[i] = BURN_ENDIAN_SWAP_INT16(TextRam[0xf24/2 + i]) & 0x0ff;
|
||||
}
|
||||
|
||||
if (System16OldPage[0] != System16Page[0]) {
|
||||
|
|
Loading…
Reference in New Issue