all repos — mgba @ 33fcd5ed84caa1fa4406e438a6345e9f0cae87c0

mGBA Game Boy Advance Emulator

GB Video: Fix potential hang when ending mode 0
Vicki Pfau vi@endrift.com
Sat, 12 Aug 2017 13:58:35 -0700
commit

33fcd5ed84caa1fa4406e438a6345e9f0cae87c0

parent

dce3744677eac2ae86092fe6acb3b895077b738e

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

jump to
M CHANGESCHANGES

@@ -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.csrc/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)) {