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

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


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

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

winefile: Properly handle negative coordinates for mouse events.

---

 programs/winefile/winefile.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 84d06de..7a0577e 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -4320,7 +4320,7 @@ #endif
 
 		case WM_LBUTTONDOWN: {
 			RECT rt;
-			int x = LOWORD(lparam);
+                        int x = (short)LOWORD(lparam);
 
 			GetClientRect(hwnd, &rt);
 
@@ -4338,7 +4338,7 @@ #endif
 			if (GetCapture() == hwnd) {
 #ifdef _NO_EXTENSIONS
 				RECT rt;
-				int x = LOWORD(lparam);
+                                int x = (short)LOWORD(lparam);
 				draw_splitbar(hwnd, last_split);
 				last_split = -1;
 				GetClientRect(hwnd, &rt);
@@ -4376,7 +4376,7 @@ #endif
 		case WM_MOUSEMOVE:
 			if (GetCapture() == hwnd) {
 				RECT rt;
-				int x = LOWORD(lparam);
+                                int x = (short)LOWORD(lparam);
 
 #ifdef _NO_EXTENSIONS
 				HDC hdc = GetDC(hwnd);




More information about the wine-cvs mailing list