Commit d1f8eb49 authored by Alexandre Julliard's avatar Alexandre Julliard

winefile: Fix incorrect use of the ScreenToClient function.

parent 22b7fedf
...@@ -2019,8 +2019,7 @@ static BOOL toggle_fullscreen(HWND hwnd) ...@@ -2019,8 +2019,7 @@ static BOOL toggle_fullscreen(HWND hwnd)
g_fullscreen.wasZoomed = IsZoomed(hwnd); g_fullscreen.wasZoomed = IsZoomed(hwnd);
Frame_CalcFrameClient(hwnd, &rt); Frame_CalcFrameClient(hwnd, &rt);
ClientToScreen(hwnd, (LPPOINT)&rt.left); MapWindowPoints( hwnd, 0, (POINT *)&rt, 2 );
ClientToScreen(hwnd, (LPPOINT)&rt.right);
rt.left = g_fullscreen.orgPos.left-rt.left; rt.left = g_fullscreen.orgPos.left-rt.left;
rt.top = g_fullscreen.orgPos.top-rt.top; rt.top = g_fullscreen.orgPos.top-rt.top;
...@@ -2046,8 +2045,7 @@ static void fullscreen_move(HWND hwnd) ...@@ -2046,8 +2045,7 @@ static void fullscreen_move(HWND hwnd)
GetWindowRect(hwnd, &pos); GetWindowRect(hwnd, &pos);
Frame_CalcFrameClient(hwnd, &rt); Frame_CalcFrameClient(hwnd, &rt);
ClientToScreen(hwnd, (LPPOINT)&rt.left); MapWindowPoints( hwnd, 0, (POINT *)&rt, 2 );
ClientToScreen(hwnd, (LPPOINT)&rt.right);
rt.left = pos.left-rt.left; rt.left = pos.left-rt.left;
rt.top = pos.top-rt.top; rt.top = pos.top-rt.top;
......
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