all repos — mgba @ 62718fce45c6d2f2ca21ee932edda797c5705189

mGBA Game Boy Advance Emulator

GB Video: Fix mode end events when turning off LCD
Jeffrey Pfau jeffrey@endrift.com
Wed, 11 Jan 2017 01:46:49 -0800
commit

62718fce45c6d2f2ca21ee932edda797c5705189

parent

0b6bc9ae82012475ee567f16823ef8019cac6a52

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

jump to
M src/gb/video.csrc/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;