scrollbar

Ulrich Czekalla ulrich.czekalla at utoronto.com
Mon Mar 15 17:07:05 CST 2004


ChangeLog:
    Ulrich Czekalla <ulrich at codeweavers.com>
    Add cast to correctly interpret signed coordinate values
-------------- next part --------------
Index: controls/scroll.c
===================================================================
RCS file: /home/wine/wine/controls/scroll.c,v
retrieving revision 1.74
diff -u -w -r1.74 scroll.c
--- controls/scroll.c	10 Dec 2003 04:14:35 -0000	1.74
+++ controls/scroll.c	15 Mar 2004 22:57:41 -0000
@@ -1239,8 +1239,8 @@
         case WM_LBUTTONUP:
         case WM_MOUSEMOVE:
         case WM_SYSTIMER:
-            pt.x = LOWORD(msg.lParam) + xoffset;
-            pt.y = HIWORD(msg.lParam) + yoffset;
+            pt.x = (short)LOWORD(msg.lParam) + xoffset;
+            pt.y = (short)HIWORD(msg.lParam) + yoffset;
             SCROLL_HandleScrollEvent( hwnd, scrollbar, msg.message, pt );
             break;
         default:


More information about the wine-patches mailing list