Alexandre Julliard : hhctrl.ocx:
Properly handle negative coordinates for mouse events.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Oct 25 13:29:04 CDT 2006
Module: wine
Branch: master
Commit: 44e8ead5d0283eaacd625b4458951e78f36413df
URL: http://source.winehq.org/git/wine.git/?a=commit;h=44e8ead5d0283eaacd625b4458951e78f36413df
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Oct 25 17:41:58 2006 +0200
hhctrl.ocx: Properly handle negative coordinates for mouse events.
---
dlls/hhctrl.ocx/help.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/hhctrl.ocx/help.c b/dlls/hhctrl.ocx/help.c
index 2c288b6..1ed1c8b 100644
--- a/dlls/hhctrl.ocx/help.c
+++ b/dlls/hhctrl.ocx/help.c
@@ -132,7 +132,10 @@ static void SB_OnLButtonDown(HWND hWnd,
static void SB_OnLButtonUp(HWND hWnd, WPARAM wParam, LPARAM lParam)
{
HHInfo *pHHInfo = (HHInfo *)GetWindowLongPtrW(hWnd, GWLP_USERDATA);
- POINTS pt = MAKEPOINTS(lParam);
+ POINT pt;
+
+ pt.x = (short)LOWORD(lParam);
+ pt.y = (short)HIWORD(lParam);
/* update the window sizes */
pHHInfo->pHHWinType->iNavWidth += pt.x;
More information about the wine-cvs
mailing list