Module: wine Branch: master Commit: b918ce9e7694da29231b73dcb228074d36d15761 URL: https://gitlab.winehq.org/wine/wine/-/commit/b918ce9e7694da29231b73dcb228074...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Tue Apr 30 18:43:03 2024 +0800
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.
---
dlls/win32u/sysparams.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index d2ac6d5bfb2..cc6bd8e7628 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -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, ¤t )) { current = desktop_ctx.primary; + current.dmDisplayFrequency = 60; current.dmPelsWidth = screen_width; current.dmPelsHeight = screen_height; }