mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(Win32) Buildfix
This commit is contained in:
parent
fa9b641ef0
commit
324227d239
@ -790,11 +790,11 @@ void win32_set_style(MONITORINFOEX *current_mon, HMONITOR *hm_to_use,
|
|||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
/* Windows only reports the refresh rates for modelines as
|
/* Windows only reports the refresh rates for modelines as
|
||||||
* an integer, so video.refresh_rate needs to be rounded. Also, account
|
* an integer, so video_refresh_rate needs to be rounded. Also, account
|
||||||
* for black frame insertion using video.refresh_rate set to half
|
* for black frame insertion using video_refresh_rate set to half
|
||||||
* of the display refresh rate, as well as higher vsync swap intervals. */
|
* 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;
|
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);
|
* refresh_mod * settings->video.swap_interval);
|
||||||
|
|
||||||
if (fullscreen)
|
if (fullscreen)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user