Fix false positives in odd-mode detection

This commit is contained in:
Lior Halphon 2021-01-09 00:59:12 +02:00
parent c496797fce
commit 96736fe7c5
1 changed files with 1 additions and 0 deletions

View File

@ -905,6 +905,7 @@ static void write_high_memory(GB_gameboy_t *gb, uint16_t addr, uint8_t value)
}
else if (!(value & 0x80) && (gb->io_registers[GB_IO_LCDC] & 0x80)) {
/* Sync after turning off LCD */
gb->double_speed_alignment = 0;
GB_timing_sync(gb);
GB_lcd_off(gb);
}