aboutsummaryrefslogtreecommitdiff
path: root/source/ppu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/ppu.cpp')
-rw-r--r--source/ppu.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/ppu.cpp b/source/ppu.cpp
index f5d793f..4717f1d 100644
--- a/source/ppu.cpp
+++ b/source/ppu.cpp
@@ -3093,25 +3093,15 @@ void REGISTER_2122(uint8 Byte)
{
if ((Byte & 0x7f) != (PPU.CGDATA[PPU.CGADD] >> 8))
{
-#ifndef FOREVER_16_BIT
- if (Settings.SixteenBit)
-#endif
FLUSH_REDRAW ();
PPU.CGDATA[PPU.CGADD] &= 0x00FF;
PPU.CGDATA[PPU.CGADD] |= (Byte & 0x7f) << 8;
IPPU.ColorsChanged = TRUE;
-#ifndef FOREVER_16_BIT
- if (Settings.SixteenBit)
- {
-#endif
IPPU.Blue [PPU.CGADD] = IPPU.XB [(Byte >> 2) & 0x1f];
IPPU.Green [PPU.CGADD] = IPPU.XB [(PPU.CGDATA[PPU.CGADD] >> 5) & 0x1f];
IPPU.ScreenColors [PPU.CGADD] = (uint16) BUILD_PIXEL (IPPU.Red [PPU.CGADD],
IPPU.Green [PPU.CGADD],
IPPU.Blue [PPU.CGADD]);
-#ifndef FOREVER_16_BIT
- }
-#endif
}
PPU.CGADD++;
}
@@ -3119,25 +3109,15 @@ void REGISTER_2122(uint8 Byte)
{
if (Byte != (uint8) (PPU.CGDATA[PPU.CGADD] & 0xff))
{
-#ifndef FOREVER_16_BIT
- if (Settings.SixteenBit)
-#endif
FLUSH_REDRAW ();
PPU.CGDATA[PPU.CGADD] &= 0x7F00;
PPU.CGDATA[PPU.CGADD] |= Byte;
IPPU.ColorsChanged = TRUE;
-#ifndef FOREVER_16_BIT
- if (Settings.SixteenBit)
- {
-#endif
IPPU.Red [PPU.CGADD] = IPPU.XB [Byte & 0x1f];
IPPU.Green [PPU.CGADD] = IPPU.XB [(PPU.CGDATA[PPU.CGADD] >> 5) & 0x1f];
IPPU.ScreenColors [PPU.CGADD] = (uint16) BUILD_PIXEL (IPPU.Red [PPU.CGADD],
IPPU.Green [PPU.CGADD],
IPPU.Blue [PPU.CGADD]);
-#ifndef FOREVER_16_BIT
- }
-#endif
}
}
PPU.CGFLIP ^= 1;