[user] scroll.c: fix visual glitch
Felix Nawothnig
felix.nawothnig at t-online.de
Sun May 8 03:02:21 CDT 2005
When moving the thumb and releasing the button it is redrawn at the
position where we started dragging it and immediatly overdrawn at the
right position. This fixes it.
ChangeLog:
Redraw thumb at SCROLL_TrackingPos on WM_LBUTTONUP instead of using
thumbPos derived from info->curVal which still holds the starting
value.
-------------- next part --------------
Index: scroll.c
===================================================================
RCS file: /home/wine/wine/dlls/user/scroll.c,v
retrieving revision 1.12
diff -u -r1.12 scroll.c
--- scroll.c 27 Apr 2005 10:23:24 -0000 1.12
+++ scroll.c 8 May 2005 07:53:56 -0000
@@ -952,7 +952,7 @@
SCROLL_DrawMovingThumb(hdc, &rect, vertical, arrowSize, thumbSize);
SCROLL_TrackingWin = 0;
SCROLL_DrawInterior( hwnd, hdc, nBar, &rect, arrowSize, thumbSize,
- thumbPos, infoPtr->flags, vertical,
+ SCROLL_TrackingPos, infoPtr->flags, vertical,
FALSE, FALSE );
}
else /* WM_MOUSEMOVE */
More information about the wine-patches
mailing list