1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

allow custom ticks values on flip

This commit is contained in:
FunkyFr3sh 2023-08-01 06:16:58 +02:00
parent af9cd76d39
commit 4312e1368f

View File

@ -778,7 +778,7 @@ HRESULT dds_Flip(IDirectDrawSurfaceImpl* This, IDirectDrawSurfaceImpl* lpDDSurfa
ReleaseSemaphore(g_ddraw->render.sem, 1, NULL);
SwitchToThread();
if ((dwFlags & DDFLIP_WAIT) || g_ddraw->maxgameticks == -2)
if (g_ddraw->maxgameticks < 60 && ((dwFlags & DDFLIP_WAIT) || g_ddraw->maxgameticks == -2))
{
dd_WaitForVerticalBlank(DDWAITVB_BLOCKEND, NULL);
}