From be46f2bac9fb4c1a88779303e949be99f6f826d8 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 1 Sep 2014 00:52:16 -0700 Subject: [PATCH] Fix frames redrawing in the middle of syncing --- src/gba/gba-thread.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gba/gba-thread.c b/src/gba/gba-thread.c index 0b39fd48f..12ca41900 100644 --- a/src/gba/gba-thread.c +++ b/src/gba/gba-thread.c @@ -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); - } + ConditionWait(&sync->videoFrameAvailableCond, &sync->videoFrameMutex); sync->videoFramePending = 0; sync->videoFrameSkip = frameskip; return true;