Commit 06011209 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

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é.
parent 88a09dd3
......@@ -2037,10 +2037,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;
......
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