From 7c5704621a34645fac276df28e8d0c65d8f9fbee Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Thu, 3 Feb 2022 22:34:14 +0200 Subject: [PATCH] Don't batch during stop mode --- Core/display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/display.c b/Core/display.c index 35ac8df..5057fcb 100644 --- a/Core/display.c +++ b/Core/display.c @@ -1267,6 +1267,7 @@ static inline uint16_t mode3_batching_length(GB_gameboy_t *gb) { if (gb->model & GB_MODEL_NO_SFC_BIT) return 0; if (gb->hdma_on) return 0; + if (gb->stopped) return 0; if (GB_is_dma_active(gb)) return 0; if (gb->wy_triggered && (gb->io_registers[GB_IO_LCDC] & 0x20) && (gb->io_registers[GB_IO_WX] < 8 || gb->io_registers[GB_IO_WX] == 166)) { return 0;