all repos — mgba @ be46f2bac9fb4c1a88779303e949be99f6f826d8

mGBA Game Boy Advance Emulator

Fix frames redrawing in the middle of syncing
Jeffrey Pfau jeffrey@endrift.com
Mon, 01 Sep 2014 00:52:16 -0700
commit

be46f2bac9fb4c1a88779303e949be99f6f826d8

parent

4fb42d58b6c71969bb46b58dfe20b2d900834900

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -577,9 +577,7 @@ ConditionWake(&sync->videoFrameRequiredCond);

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;