GB Video: Set mode variable when disabling LCDC
Vicki Pfau vi@endrift.com
Sun, 24 Jun 2018 16:53:34 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gb/video.c
→
src/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;