mirror of
https://github.com/libretro/RetroArch.git
synced 2025-03-03 15:37:30 +00:00
Merge pull request #12787 from sonninnos/win32-orig-refresh
(WIN32) Remember original refresh rate
This commit is contained in:
commit
9e84c5c2c8
@ -238,7 +238,8 @@ static bool win32_display_server_set_resolution(void *data,
|
|||||||
serv->orig_width = GetSystemMetrics(SM_CXSCREEN);
|
serv->orig_width = GetSystemMetrics(SM_CXSCREEN);
|
||||||
if (serv->orig_height == 0)
|
if (serv->orig_height == 0)
|
||||||
serv->orig_height = GetSystemMetrics(SM_CYSCREEN);
|
serv->orig_height = GetSystemMetrics(SM_CYSCREEN);
|
||||||
serv->orig_refresh = dm.dmDisplayFrequency;
|
if (serv->orig_refresh == 0)
|
||||||
|
serv->orig_refresh = dm.dmDisplayFrequency;
|
||||||
|
|
||||||
/* Used to stop super resolution bug */
|
/* Used to stop super resolution bug */
|
||||||
if (width == dm.dmPelsWidth)
|
if (width == dm.dmPelsWidth)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user