Alexandre Julliard : comctl32/pager: Fix incorrect use of the ScreenToClient function.
Alexandre Julliard
julliard at winehq.org
Tue Oct 5 12:03:10 CDT 2010
Module: wine
Branch: master
Commit: 5434d069ea7d12c9cdc317e81c9f32a205b3e981
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5434d069ea7d12c9cdc317e81c9f32a205b3e981
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 5 14:03:48 2010 +0200
comctl32/pager: Fix incorrect use of the ScreenToClient function.
---
dlls/comctl32/pager.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/dlls/comctl32/pager.c b/dlls/comctl32/pager.c
index f3461fd..e1420e0 100644
--- a/dlls/comctl32/pager.c
+++ b/dlls/comctl32/pager.c
@@ -99,11 +99,7 @@ PAGER_GetButtonRects(const PAGER_INFO* infoPtr, RECT* prcTopLeft, RECT* prcBotto
GetWindowRect (infoPtr->hwndSelf, &rcWindow);
if (bClientCoords)
- {
- POINT pt = {rcWindow.left, rcWindow.top};
- ScreenToClient(infoPtr->hwndSelf, &pt);
- OffsetRect(&rcWindow, -(rcWindow.left-pt.x), -(rcWindow.top-pt.y));
- }
+ MapWindowPoints( 0, infoPtr->hwndSelf, (POINT *)&rcWindow, 2 );
else
OffsetRect(&rcWindow, -rcWindow.left, -rcWindow.top);
More information about the wine-cvs
mailing list