GBHawk: Bug Fix

This commit is contained in:
alyosha-tas 2017-11-25 13:10:09 -05:00
parent 35623000ac
commit 2557be35d5
1 changed files with 6 additions and 2 deletions

View File

@ -250,10 +250,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
Core.cpu.LY = LY;
// Automatically restore access to VRAM at this time (force end drawing)
// Who Framed Roger Rabbit seems to run into this.
VRAM_access_write = true;
VRAM_access_read = true;
if (LY == 144)
{
Core.in_vblank = true;
}
}
@ -594,7 +598,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
}
// before anything else, we have to check if windowing is in effect
if (LCDC.Bit(5) && !window_started && LY >= window_y && pixel_counter >= window_x - 7)
if (LCDC.Bit(5) && !window_started && (LY >= window_y) && (pixel_counter >= (window_x - 7)))
{
/*
Console.Write(LY);