Add files via upload

This commit is contained in:
alphanu1 2018-04-29 15:47:32 +01:00 committed by GitHub
parent db2eaf97e4
commit 896041f468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,7 +215,12 @@ static bool win32_display_server_set_resolution(void *data,
if (!serv)
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)
hz = 50;
if (hz >= 53 && hz < 57)
@ -225,11 +230,6 @@ static bool win32_display_server_set_resolution(void *data,
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)
freq = hz;