From 160d54057a9a3cf088f42fe32b028b427c9c0fd1 Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Mon, 27 Nov 2017 19:37:13 -0500 Subject: [PATCH] GBHawk: Fix altered space sprites --- BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs index 4c61d66dd2..aa2bc8ca7e 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawk/PPU.cs @@ -250,6 +250,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk LY_inc = 1; Core.in_vblank = false; VBL_INT = false; + if (STAT.Bit(3)) { HBL_INT = true; } + + STAT &= 0xFC; // special note here, the y coordiate of the window is kept if the window is deactivated // meaning it will pick up where it left off if re-enabled later