mirror of https://github.com/mgba-emu/mgba.git
Fix frames redrawing in the middle of syncing
This commit is contained in:
parent
4fb42d58b6
commit
be46f2bac9
|
@ -577,9 +577,7 @@ bool GBASyncWaitFrameStart(struct GBASync* sync, int frameskip) {
|
||||||
if (!sync->videoFrameOn && !sync->videoFramePending) {
|
if (!sync->videoFrameOn && !sync->videoFramePending) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!sync->videoFramePending) {
|
|
||||||
ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex);
|
ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex);
|
||||||
}
|
|
||||||
sync->videoFramePending = 0;
|
sync->videoFramePending = 0;
|
||||||
sync->videoFrameSkip = frameskip;
|
sync->videoFrameSkip = frameskip;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue