diff options
author | aliaspider | 2014-10-29 05:28:04 +0100 |
---|---|---|
committer | aliaspider | 2014-10-29 05:28:04 +0100 |
commit | 1d98e1c317fa19687ae6bc3cb8e550ef7531bf02 (patch) | |
tree | 343103da8fe67905e99b16636e93421397fe692b /source/ppu.cpp | |
parent | f518934e3b664d0cf9535a391d6572300958d3bf (diff) | |
download | snesemu-1d98e1c317fa19687ae6bc3cb8e550ef7531bf02.tar.gz snesemu-1d98e1c317fa19687ae6bc3cb8e550ef7531bf02.tar.bz2 snesemu-1d98e1c317fa19687ae6bc3cb8e550ef7531bf02.zip |
cleanups (cont.)
Diffstat (limited to 'source/ppu.cpp')
-rw-r--r-- | source/ppu.cpp | 20 |
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; |