Module: wine Branch: master Commit: 0ab4c36c8e915fedba00813135d127ec12809994 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0ab4c36c8e915fedba00813135...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Oct 25 17:43:22 2006 +0200
winhelp: Properly handle negative coordinates for mouse events.
---
programs/winhelp/winhelp.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index 28d464d..4e9a717 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -1111,8 +1111,8 @@ static LRESULT CALLBACK WINHELP_TextWndP HLPFILE* hlpfile; HLPFILE_WINDOWINFO* wi;
- mouse.x = LOWORD(lParam); - mouse.y = HIWORD(lParam); + mouse.x = (short)LOWORD(lParam); + mouse.y = (short)HIWORD(lParam);
if (part->link) switch (part->link->cookie) {