Commit f2cfd63c authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

winemac: Update the stored display settings immediately.

Instead of after sending the WM_MACDRV_UPDATE_DESKTOP_RECT message. Specifically ddraw reacts to the followup messages and expects to get the new display rects inside the message handler. Signed-off-by: 's avatarMatteo Bruni <mbruni@codeweavers.com> Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent dd710913
...@@ -996,6 +996,8 @@ better: ...@@ -996,6 +996,8 @@ better:
size_t width = CGDisplayModeGetWidth(best_display_mode); size_t width = CGDisplayModeGetWidth(best_display_mode);
size_t height = CGDisplayModeGetHeight(best_display_mode); size_t height = CGDisplayModeGetHeight(best_display_mode);
macdrv_init_display_devices(TRUE);
if (best_is_original && retina_enabled) if (best_is_original && retina_enabled)
{ {
width *= 2; width *= 2;
...@@ -1005,8 +1007,6 @@ better: ...@@ -1005,8 +1007,6 @@ better:
SendMessageW(GetDesktopWindow(), WM_MACDRV_UPDATE_DESKTOP_RECT, mode_bpp, SendMessageW(GetDesktopWindow(), WM_MACDRV_UPDATE_DESKTOP_RECT, mode_bpp,
MAKELPARAM(width, height)); MAKELPARAM(width, height));
ret = DISP_CHANGE_SUCCESSFUL; ret = DISP_CHANGE_SUCCESSFUL;
macdrv_init_display_devices(TRUE);
} }
else else
{ {
......
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