[PATCH 1/3] winemac: Update the stored display settings immediately.

Matteo Bruni mbruni at codeweavers.com
Mon Nov 2 12:03:09 CST 2020


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.

Fixes commit b8415e0310595d239b5bcef4e74efd1f0972fac0.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 dlls/winemac.drv/display.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winemac.drv/display.c b/dlls/winemac.drv/display.c
index f6390becea7..6706c88341c 100644
--- a/dlls/winemac.drv/display.c
+++ b/dlls/winemac.drv/display.c
@@ -996,6 +996,8 @@ better:
             size_t width = CGDisplayModeGetWidth(best_display_mode);
             size_t height = CGDisplayModeGetHeight(best_display_mode);
 
+            macdrv_init_display_devices(TRUE);
+
             if (best_is_original && retina_enabled)
             {
                 width *= 2;
@@ -1005,8 +1007,6 @@ better:
             SendMessageW(GetDesktopWindow(), WM_MACDRV_UPDATE_DESKTOP_RECT, mode_bpp,
                          MAKELPARAM(width, height));
             ret = DISP_CHANGE_SUCCESSFUL;
-
-            macdrv_init_display_devices(TRUE);
         }
         else
         {
-- 
2.26.2




More information about the wine-devel mailing list