limit fps also with maxfps=0
This commit is contained in:
parent
5060752adb
commit
bbf529f6ef
2 changed files with 7 additions and 4 deletions
4
src/dd.c
4
src/dd.c
|
@ -1189,7 +1189,9 @@ HRESULT dd_WaitForVerticalBlank(DWORD dwFlags, HANDLE hEvent)
|
|||
{
|
||||
if (g_config.maxgameticks == -2)
|
||||
{
|
||||
BOOL open = !(g_config.maxfps < 0 || (g_config.vsync && g_config.maxfps >= g_ddraw->mode.dmDisplayFrequency));
|
||||
BOOL open =
|
||||
!(g_config.maxfps < 0 ||
|
||||
(g_config.vsync && (!g_config.maxfps || g_config.maxfps >= g_ddraw->mode.dmDisplayFrequency));
|
||||
|
||||
if (fpsl_dwm_flush() || fpsl_wait_for_vblank(open))
|
||||
return DD_OK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue