# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1303106773 0 # Node ID 529c27638936bba1cec53a0af364d7668dc031e5 # Parent 8c29ea2d17fc42d07c48ce5894e728d4f87cbe31 Added missing SIF_PAGE getting SCROLLINFO on Windows. This was causing scrollbox paging to function erratically. diff -r 8c29ea2d17fc -r 529c27638936 win/dw.c --- 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);