Use fabsf and intended threshold for refresh rate check (#17791)
Discussed with sonninnos Co-authored-by: pstef <3462925+pstef@users.noreply.github.com>
This commit is contained in:
parent
036df1e9b1
commit
b98a730413
|
@ -96,7 +96,7 @@ static void gfx_ctx_w_vk_check_window(void *data, bool *quit,
|
|||
if ( (win32_vk.flags & VK_DATA_FLAG_FULLSCREEN)
|
||||
&& (g_win32_refresh_rate)
|
||||
&& (g_win32_refresh_rate != refresh_rate)
|
||||
&& (abs(g_win32_refresh_rate - refresh_rate) > 0)
|
||||
&& (fabsf(g_win32_refresh_rate - refresh_rate) > 0.1f)
|
||||
&& (g_win32_resize_width == *width)
|
||||
&& (g_win32_resize_height == *height))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue