changeset 896:529c27638936

Added missing SIF_PAGE getting SCROLLINFO on Windows. This was causing scrollbox paging to function erratically.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 18 Apr 2011 06:06:13 +0000
parents 8c29ea2d17fc
children 2b07bf8ed95b
files win/dw.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Mon Apr 18 00:19:32 2011 +0000
+++ b/win/dw.c	Mon Apr 18 06:06:13 2011 +0000
@@ -3238,8 +3238,9 @@
             int bar = SB_HORZ;
             int which = LOWORD(mp1);
 
+            /* Initialize the scroll info structs */
             vsi.cbSize = hsi.cbSize = sizeof(SCROLLINFO);
-            vsi.fMask = hsi.fMask = SIF_POS | SIF_RANGE;
+            vsi.fMask = hsi.fMask = SIF_POS | SIF_RANGE | SIF_PAGE;
 
             /* Save the current scroll positions */
             GetScrollInfo(hwnd, SB_HORZ, &hsi);