diff --git a/gfx/common/win32_common.cpp b/gfx/common/win32_common.cpp index b5adbcd6c3..52a3b5e8f8 100644 --- a/gfx/common/win32_common.cpp +++ b/gfx/common/win32_common.cpp @@ -790,11 +790,11 @@ void win32_set_style(MONITORINFOEX *current_mon, HMONITOR *hm_to_use, settings_t *settings = config_get_ptr(); /* Windows only reports the refresh rates for modelines as - * an integer, so video.refresh_rate needs to be rounded. Also, account - * for black frame insertion using video.refresh_rate set to half + * an integer, so video_refresh_rate needs to be rounded. Also, account + * for black frame insertion using video_refresh_rate set to half * of the display refresh rate, as well as higher vsync swap intervals. */ float refresh_mod = settings->bools.video_black_frame_insertion ? 2.0f : 1.0f; - unsigned refresh = roundf(settings->video.refresh_rate + unsigned refresh = roundf(settings->floats.video_refresh_rate * refresh_mod * settings->video.swap_interval); if (fullscreen)