Alexandre Julliard : user32: Avoid redundant server call in WIN_GetRectangles and fix the screen coordinates mapping .
Alexandre Julliard
julliard at winehq.org
Wed Sep 8 13:32:10 CDT 2010
Module: wine
Branch: master
Commit: ca499d070f3ac707f49d46d1bf7f7588ccc7d76b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ca499d070f3ac707f49d46d1bf7f7588ccc7d76b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Sep 8 13:15:29 2010 +0200
user32: Avoid redundant server call in WIN_GetRectangles and fix the screen coordinates mapping.
---
dlls/user32/win.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 4f85547..f5e9064 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -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:
More information about the wine-cvs
mailing list