Fix frames redrawing in the middle of syncing

This commit is contained in:
Jeffrey Pfau 2014-09-01 00:52:16 -07:00
parent 4fb42d58b6
commit be46f2bac9
1 changed files with 1 additions and 3 deletions

View File

@ -577,9 +577,7 @@ bool GBASyncWaitFrameStart(struct GBASync* sync, int frameskip) {
if (!sync->videoFrameOn && !sync->videoFramePending) {
return false;
}
if (!sync->videoFramePending) {
ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex);
}
sync->videoFramePending = 0;
sync->videoFrameSkip = frameskip;
return true;