Commit ca499d07 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Avoid redundant server call in WIN_GetRectangles and fix the screen coordinates mapping.

parent ec382f43
......@@ -708,14 +708,15 @@ BOOL WIN_GetRectangles( HWND hwnd, enum coords_relative relative, RECT *rectWind
}
WIN_ReleasePtr( win );
win = parent;
OffsetRect( &window_rect, -win->rectClient.left, -win->rectClient.top );
OffsetRect( &client_rect, -win->rectClient.left, -win->rectClient.top );
OffsetRect( &window_rect, win->rectClient.left, win->rectClient.top );
OffsetRect( &client_rect, win->rectClient.left, win->rectClient.top );
}
break;
}
if (rectWindow) *rectWindow = window_rect;
if (rectClient) *rectClient = client_rect;
WIN_ReleasePtr( win );
return TRUE;
}
other_process:
......
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