clean up config.c

This commit is contained in:
FunkyFr3sh 2023-09-23 17:48:06 +02:00
parent 58d52e396c
commit 90dd010bbf
7 changed files with 13 additions and 21 deletions

View file

@ -454,7 +454,7 @@ DWORD WINAPI d3d9_render_main(void)
BOOL needs_update = FALSE;
DWORD timeout = g_config.minfps > 0 ? g_config.minfps_tick_len : INFINITE;
DWORD timeout = g_config.minfps > 0 ? g_ddraw->minfps_tick_len : INFINITE;
while (g_ddraw->render.run &&
(g_config.minfps < 0 || WaitForSingleObject(g_ddraw->render.sem, timeout) != WAIT_FAILED))