[PATCH 0/1] MR2543: winemac: Don't constrain surface dimensions to the onscreen part of a window.
Fixes an issue where a window's image would be stretched as it was moved further offscreen. The offscreen part of a window also did not display correctly in Exposé. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2543
From: Brendan Shanks <bshanks(a)codeweavers.com> Fixes an issue where a window's image would be stretched as it was moved further offscreen. The offscreen part of a window also did not display correctly in Exposé. --- dlls/winemac.drv/window.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c index 896efb6a68e..f6691132bdc 100644 --- a/dlls/winemac.drv/window.c +++ b/dlls/winemac.drv/window.c @@ -2029,10 +2029,8 @@ LRESULT macdrv_WindowMessage(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) static inline RECT get_surface_rect(const RECT *visible_rect) { - RECT rect; - RECT desktop_rect = rect_from_cgrect(macdrv_get_desktop_rect()); + RECT rect = *visible_rect; - intersect_rect(&rect, visible_rect, &desktop_rect); OffsetRect(&rect, -visible_rect->left, -visible_rect->top); rect.left &= ~127; rect.top &= ~127; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/2543
Note that the reason for doing this is that some apps create huge windows (like 32,000 x 32,000). Without additional constraints this would create a 4Gb surface. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2543#note_28514
participants (3)
-
Alexandre Julliard (@julliard) -
Brendan Shanks -
Brendan Shanks (@bshanks)