git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 7c5704621a34645fac276df28e8d0c65d8f9fbee
parent 37ca174f37c9326472cbb02e31683e871d0602d0
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Thu,  3 Feb 2022 22:34:14 +0200

Don't batch during stop mode

Diffstat:
MCore/display.c1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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;

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.