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:
pstef 2025-04-09 22:22:00 +02:00 committed by GitHub
parent 036df1e9b1
commit b98a730413
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{