GB Video: Fix mode end events when turning off LCD
Jeffrey Pfau jeffrey@endrift.com
Wed, 11 Jan 2017 01:46:49 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/gb/video.c
→
src/gb/video.c
@@ -321,6 +321,7 @@ video->stat = GBRegisterSTATSetMode(video->stat, 0);
video->p->memory.io[REG_STAT] = video->stat; video->ly = 0; video->p->memory.io[REG_LY] = 0; + mTimingDeschedule(&video->p->timing, &video->modeEvent); mTimingSchedule(&video->p->timing, &video->frameEvent, GB_VIDEO_TOTAL_LENGTH); } video->p->memory.io[REG_STAT] = video->stat;