bug fix for gdi frame skip, keep trying until last frame was drawn

This commit is contained in:
FunkyFr3sh 2018-11-20 18:45:48 +01:00
parent 5829453a1a
commit 91281e0530
2 changed files with 3 additions and 1 deletions

View file

@ -60,7 +60,9 @@ DWORD WINAPI render_soft_main(void)
DWORD curTick = timeGetTime();
if (lastTick + frameLength > curTick)
{
ReleaseSemaphore(ddraw->render.sem, 1, NULL);
SetEvent(ddraw->render.ev);
SwitchToThread();
continue;
}
lastTick = curTick;