From 2557be35d51d3ae249a46434a00c01a5bcedcbd4 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Sat, 25 Nov 2017 13:10:09 -0500 Subject: [PATCH] GBHawk: Bug Fix --- BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs index 1bcb384241..c21c2f46a5 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs @@ -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);