(Win32) Buildfix

This commit is contained in:
twinaphex 2017-04-28 15:59:42 +02:00
parent fa9b641ef0
commit 324227d239

View File

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