1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

force wait on flip with maxgameticks = -2

This commit is contained in:
FunkyFr3sh 2021-05-09 00:37:53 +02:00
parent 6efc112c39
commit 72f60913da

View File

@ -708,7 +708,7 @@ HRESULT dds_Flip(IDirectDrawSurfaceImpl *This, LPDIRECTDRAWSURFACE surface, DWOR
ReleaseSemaphore(g_ddraw->render.sem, 1, NULL); ReleaseSemaphore(g_ddraw->render.sem, 1, NULL);
SwitchToThread(); SwitchToThread();
if (flags & DDFLIP_WAIT) if ((flags & DDFLIP_WAIT) || g_ddraw->maxgameticks == -2)
{ {
dd_WaitForVerticalBlank(DDWAITVB_BLOCKEND, NULL); dd_WaitForVerticalBlank(DDWAITVB_BLOCKEND, NULL);
} }