mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
allow custom ticks values on flip
This commit is contained in:
parent
af9cd76d39
commit
4312e1368f
@ -778,7 +778,7 @@ HRESULT dds_Flip(IDirectDrawSurfaceImpl* This, IDirectDrawSurfaceImpl* lpDDSurfa
|
|||||||
ReleaseSemaphore(g_ddraw->render.sem, 1, NULL);
|
ReleaseSemaphore(g_ddraw->render.sem, 1, NULL);
|
||||||
SwitchToThread();
|
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);
|
dd_WaitForVerticalBlank(DDWAITVB_BLOCKEND, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user