Fixed window behavior

This commit is contained in:
Lior Halphon 2017-02-24 00:59:07 +02:00
parent a420cfd798
commit 319857db89

View File

@ -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; 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); display_vblank(gb);
} }