mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
Add files via upload
This commit is contained in:
parent
db2eaf97e4
commit
896041f468
@ -215,7 +215,12 @@ static bool win32_display_server_set_resolution(void *data,
|
|||||||
if (!serv)
|
if (!serv)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* set hz float to an int for windows switching */
|
if (orig_width == 0)
|
||||||
|
orig_width = GetSystemMetrics(SM_CXSCREEN);
|
||||||
|
if (orig_height == 0)
|
||||||
|
orig_height = GetSystemMetrics(SM_CYSCREEN);
|
||||||
|
|
||||||
|
/* set hz float to an int for windows switching */
|
||||||
if (hz < 53)
|
if (hz < 53)
|
||||||
hz = 50;
|
hz = 50;
|
||||||
if (hz >= 53 && hz < 57)
|
if (hz >= 53 && hz < 57)
|
||||||
@ -225,11 +230,6 @@ static bool win32_display_server_set_resolution(void *data,
|
|||||||
|
|
||||||
video_monitor_set_refresh_rate(hz);
|
video_monitor_set_refresh_rate(hz);
|
||||||
|
|
||||||
|
|
||||||
if (orig_width == 0)
|
|
||||||
orig_width = GetSystemMetrics(SM_CXSCREEN);
|
|
||||||
if (orig_height == 0)
|
|
||||||
orig_height = GetSystemMetrics(SM_CYSCREEN);
|
|
||||||
|
|
||||||
if (f_restore == 0)
|
if (f_restore == 0)
|
||||||
freq = hz;
|
freq = hz;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user