From 1d98e1c317fa19687ae6bc3cb8e550ef7531bf02 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 29 Oct 2014 05:28:04 +0100 Subject: cleanups (cont.) --- source/ppu.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'source/ppu.cpp') 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; -- cgit v1.2.3