GB Video: Fix potential hang when ending mode 0
Vicki Pfau vi@endrift.com
Sat, 12 Aug 2017 13:58:35 -0700
2 files changed,
2 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -17,6 +17,7 @@ - GB Serialize: Fix deserializing video STAT
- GB, GBA Savedata: Fix savestate-related save overwriting (fixes mgba.io/i/834) - Qt: Fix timezone issues with time overrides - Qt: Fix sprite export pausing game indefinitely (fixes mgba.io/i/841) + - GB Video: Fix potential hang when ending mode 0 Misc: - Qt: Don't rebuild library view if style hasn't changed - SDL: Fix 2.0.5 build on macOS under some circumstances
M
src/gb/video.c
→
src/gb/video.c
@@ -154,6 +154,7 @@ next = GB_VIDEO_HORIZONTAL_LENGTH;
video->mode = 1; video->modeEvent.callback = _endMode1; + mTimingDeschedule(&video->p->timing, &video->frameEvent); mTimingSchedule(&video->p->timing, &video->frameEvent, -cyclesLate); if (!_statIRQAsserted(video, oldStat) && GBRegisterSTATIsOAMIRQ(video->stat)) {