all repos — mgba @ 932f2624c07c90a9a0d3b0bd6893e801a7962d47

mGBA Game Boy Advance Emulator

GB Video: Set mode variable when disabling LCDC
Vicki Pfau vi@endrift.com
Sun, 24 Jun 2018 16:53:34 -0700
commit

932f2624c07c90a9a0d3b0bd6893e801a7962d47

parent

aa0f988daa2319272e3d6816b75ebf66896c6f32

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/gb/video.csrc/gb/video.c

@@ -437,6 +437,7 @@ mTimingDeschedule(&video->p->timing, &video->frameEvent);

} if (GBRegisterLCDCIsEnable(video->p->memory.io[REG_LCDC]) && !GBRegisterLCDCIsEnable(value)) { // TODO: Fix serialization; this gets internal and visible modes out of sync + video->mode = 0; video->stat = GBRegisterSTATSetMode(video->stat, 0); video->p->memory.io[REG_STAT] = video->stat; video->ly = 0;