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

force at least 5 FPS to avoid problems in the menus

This commit is contained in:
FunkyFr3sh 2018-10-03 12:12:11 +02:00
parent 24b0e5cf24
commit 9cbd2de62f
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ typedef struct IDirectDrawImpl
char shader[MAX_PATH];
BOOL wine;
int sleep;
BOOL resetDirect3D9;
LONG resetDirect3D9;
} IDirectDrawImpl;

View File

@ -214,7 +214,7 @@ static void Render()
DWORD tick_start = 0;
DWORD tick_end = 0;
while (ddraw->render.run && WaitForSingleObject(ddraw->render.sem, INFINITE) != WAIT_FAILED)
while (ddraw->render.run && WaitForSingleObject(ddraw->render.sem, 200) != WAIT_FAILED)
{
#if _DEBUG
DrawFrameInfoStart();