GBHawk: PPU fix

This commit is contained in:
alyosha-tas 2017-11-21 09:20:09 -05:00
parent a1ab551ea1
commit 9f1c5b45c0
1 changed files with 9 additions and 1 deletions
BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk

View File

@ -639,7 +639,15 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
pixel |= tile_data_latch[1].Bit(7 - (render_counter % 8)) ? 2 : 0;
int ref_pixel = pixel;
pixel = (BGP >> (pixel * 2)) & 3;
if (LCDC.Bit(0))
{
pixel = (BGP >> (pixel * 2)) & 3;
}
else
{
pixel = 0;
}
// now we have the BG pixel, we next need the sprite pixel
if (!no_sprites)