Fixed inaccurate LCD controller behavior that caused Pokémon Pinball to freeze.

This commit is contained in:
Lior Halphon 2016-03-30 23:37:08 +03:00
parent 3344480de7
commit a3dd58c92c
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ void display_run(GB_gameboy_t *gb)
if (!(gb->io_registers[GB_IO_LCDC] & 0x80)) {
/* LCD is disabled, do nothing */
gb->io_registers[GB_IO_STAT] &= ~3;
gb->io_registers[GB_IO_LY] = 0;
return;
}