Alexandre Julliard : wineconsole: Properly handle negative coordinates for mouse events.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Oct 25 13:29:14 CDT 2006


Module: wine
Branch: master
Commit: f51c4004362eda28e0d4d32acb8795a500a4d26a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f51c4004362eda28e0d4d32acb8795a500a4d26a

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Oct 25 17:43:02 2006 +0200

wineconsole: Properly handle negative coordinates for mouse events.

---

 programs/wineconsole/user.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c
index fbb1b98..4249e1f 100644
--- a/programs/wineconsole/user.c
+++ b/programs/wineconsole/user.c
@@ -1177,8 +1177,8 @@ static LRESULT CALLBACK WCUSER_Proc(HWND
         {
             POINT       pt;
 
-            pt.x = LOWORD(lParam);
-            pt.y = HIWORD(lParam);
+            pt.x = (short)LOWORD(lParam);
+            pt.y = (short)HIWORD(lParam);
             ClientToScreen(hWnd, &pt);
             WCUSER_SetMenuDetails(data, PRIVATE(data)->hPopMenu);
             TrackPopupMenu(PRIVATE(data)->hPopMenu, TPM_LEFTALIGN|TPM_TOPALIGN,




More information about the wine-cvs mailing list