From 319857db89b6398f287bd8da52f5433e6bded13f Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Fri, 24 Feb 2017 00:59:07 +0200 Subject: [PATCH] Fixed window behavior --- Core/display.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/display.c b/Core/display.c index f878706f..feb0babc 100755 --- a/Core/display.c +++ b/Core/display.c @@ -366,6 +366,10 @@ static void update_display_state(GB_gameboy_t *gb, uint8_t cycles) } } ly_for_comparison = gb->io_registers[GB_IO_LY] = 0; + + /* Reset window rendering state */ + gb->effective_window_enabled = false; + gb->effective_window_y = 0xFF; display_vblank(gb); }