Skip to content

Commit

Permalink
Merge pull request #12787 from sonninnos/win32-orig-refresh
Browse files Browse the repository at this point in the history
(WIN32) Remember original refresh rate
  • Loading branch information
inactive123 committed Aug 12, 2021
2 parents 1c82fd2 + f1c276b commit 9e84c5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gfx/display_servers/dispserv_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ static bool win32_display_server_set_resolution(void *data,
serv->orig_width = GetSystemMetrics(SM_CXSCREEN);
if (serv->orig_height == 0)
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 */
if (width == dm.dmPelsWidth)
Expand Down

0 comments on commit 9e84c5c

Please sign in to comment.