Fixed DMG timing regression

This commit is contained in:
Lior Halphon 2018-03-31 12:21:34 +03:00
parent 7706b8727a
commit 0a2d6e6dcb

View File

@ -496,7 +496,7 @@ void GB_display_run(GB_gameboy_t *gb, uint8_t cycles)
gb->io_registers[GB_IO_STAT] |= 2;
}
GB_STAT_update(gb);
if (gb->current_line != 0) {
if (gb->current_line != 0 || !gb->is_cgb) {
gb->io_registers[GB_IO_STAT] &= ~3;
}