Alexandre Julliard : winefile: 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: d1f8eb49fef515a1a532b1e98a0200121c3b3758
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d1f8eb49fef515a1a532b1e98a0200121c3b3758
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 5 14:02:41 2010 +0200
winefile: Fix incorrect use of the ScreenToClient function.
---
programs/winefile/winefile.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index c150c9a..aed4d14 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -2019,8 +2019,7 @@ static BOOL toggle_fullscreen(HWND hwnd)
g_fullscreen.wasZoomed = IsZoomed(hwnd);
Frame_CalcFrameClient(hwnd, &rt);
- ClientToScreen(hwnd, (LPPOINT)&rt.left);
- ClientToScreen(hwnd, (LPPOINT)&rt.right);
+ MapWindowPoints( hwnd, 0, (POINT *)&rt, 2 );
rt.left = g_fullscreen.orgPos.left-rt.left;
rt.top = g_fullscreen.orgPos.top-rt.top;
@@ -2046,8 +2045,7 @@ static void fullscreen_move(HWND hwnd)
GetWindowRect(hwnd, &pos);
Frame_CalcFrameClient(hwnd, &rt);
- ClientToScreen(hwnd, (LPPOINT)&rt.left);
- ClientToScreen(hwnd, (LPPOINT)&rt.right);
+ MapWindowPoints( hwnd, 0, (POINT *)&rt, 2 );
rt.left = pos.left-rt.left;
rt.top = pos.top-rt.top;
More information about the wine-cvs
mailing list