From 96736fe7c51961b14a8c49764d2588c0f7c8a232 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 9 Jan 2021 00:59:12 +0200 Subject: [PATCH] Fix false positives in odd-mode detection --- Core/memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/memory.c b/Core/memory.c index cff31b6d..58efc831 100644 --- a/Core/memory.c +++ b/Core/memory.c @@ -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); }