Alexandre Julliard : oleview:
Properly handle negative coordinates for mouse events.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Oct 25 13:29:12 CDT 2006
Module: wine
Branch: master
Commit: 4a464ef03aa2c717b48871174b932b1cffae076f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4a464ef03aa2c717b48871174b932b1cffae076f
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Oct 25 17:42:51 2006 +0200
oleview: Properly handle negative coordinates for mouse events.
---
programs/oleview/pane.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/programs/oleview/pane.c b/programs/oleview/pane.c
index 4f5486d..61ab23c 100644
--- a/programs/oleview/pane.c
+++ b/programs/oleview/pane.c
@@ -73,11 +73,11 @@ LRESULT CALLBACK PaneProc(HWND hWnd, UIN
SetCursor(LoadCursor(0, IDC_SIZEWE));
break;
case WM_LBUTTONDOWN:
- if(LOWORD(lParam) >= GetSplitPos(hWnd)-pane->size/2 &&
- LOWORD(lParam) <= GetSplitPos(hWnd)+pane->size/2)
+ if((short)LOWORD(lParam) >= GetSplitPos(hWnd)-pane->size/2 &&
+ (short)LOWORD(lParam) <= GetSplitPos(hWnd)+pane->size/2)
{
pane->last = -1;
- DrawSplitMoving(hWnd, LOWORD(lParam));
+ DrawSplitMoving(hWnd, (short)LOWORD(lParam));
SetCapture(hWnd);
}
break;
@@ -85,7 +85,7 @@ LRESULT CALLBACK PaneProc(HWND hWnd, UIN
if(GetCapture() == hWnd)
{
pane->last = -1;
- DrawSplitMoving(hWnd, LOWORD(lParam));
+ DrawSplitMoving(hWnd, (short)LOWORD(lParam));
MoveWindow(pane->left, 0, 0,
GetSplitPos(hWnd)-pane->size/2, pane->height, TRUE);
@@ -97,7 +97,7 @@ LRESULT CALLBACK PaneProc(HWND hWnd, UIN
break;
case WM_MOUSEMOVE:
if(GetCapture() == hWnd)
- DrawSplitMoving(hWnd, LOWORD(lParam));
+ DrawSplitMoving(hWnd, (short)LOWORD(lParam));
break;
case WM_NOTIFY:
if((int)wParam != TYPELIB_TREE) break;
More information about the wine-cvs
mailing list