Commit b918ce9e authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

win32u: Set the virtual desktop display frequency to 60Hz.

Fix a regression from ee0aad5c, which changes the virtual desktop display frequency to that of the host display while adding modes of 60Hz. So when the host display is not 60Hz, we might get ChangeDisplaySettings() failures when virtual desktop is on because the target mode is not found because of the frequency difference.
parent b44c3dc9
...@@ -1900,6 +1900,7 @@ static BOOL desktop_update_display_devices( BOOL force, struct device_manager_ct ...@@ -1900,6 +1900,7 @@ static BOOL desktop_update_display_devices( BOOL force, struct device_manager_ct
if (!read_source_mode( ctx->source_key, ENUM_CURRENT_SETTINGS, &current )) if (!read_source_mode( ctx->source_key, ENUM_CURRENT_SETTINGS, &current ))
{ {
current = desktop_ctx.primary; current = desktop_ctx.primary;
current.dmDisplayFrequency = 60;
current.dmPelsWidth = screen_width; current.dmPelsWidth = screen_width;
current.dmPelsHeight = screen_height; current.dmPelsHeight = screen_height;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment