Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 35185 Details for
Bug 56701
Scrollbars bug in wine-20040615
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file ready to be added to ebuild.
scrollbars.diff (text/plain), 3.03 KB, created by
Andy Crook
on 2004-07-11 09:42:29 UTC
(
hide
)
Description:
Patch file ready to be added to ebuild.
Filename:
MIME Type:
Creator:
Andy Crook
Created:
2004-07-11 09:42:29 UTC
Size:
3.03 KB
patch
obsolete
>diff -u controls/scroll.c:1.79 controls/scroll.c:1.78 >--- controls/scroll.c:1.79 Sat Jul 10 12:24:59 2004 >+++ controls/scroll.c Sat Jul 10 12:24:59 2004 >@@ -1211,28 +1211,6 @@ > } > > >-/************************************************************************* >- * SCROLL_SetScrollRange >- * >- */ >-static BOOL SCROLL_SetScrollRange( >- HWND hwnd, /* [in] Handle of window */ >- INT nBar, /* [in] One of SB_HORZ, SB_VERT, or SB_CTL */ >- INT minVal, /* [out] minimum value */ >- INT maxVal /* [out] maximum value */) >-{ >- LPSCROLLBAR_INFO infoPtr = SCROLL_GetScrollBarInfo(hwnd, nBar); >- >- TRACE("hwnd=%p nBar=%d min=%d max=%d\n", hwnd, nBar, minVal, maxVal); >- >- if (infoPtr) >- { >- infoPtr->minVal = minVal; >- infoPtr->maxVal = maxVal; >- } >- return infoPtr ? TRUE : FALSE; >-} >- > > /*********************************************************************** > * ScrollBarWndProc >@@ -1340,17 +1362,14 @@ > return SCROLL_GetScrollPos(hwnd, SB_CTL); > > case SBM_SETRANGE16: >+ SetScrollRange( hwnd, SB_CTL, LOWORD(lParam), HIWORD(lParam), >+ wParam /* FIXME: Is this correct? */ ); >+ return 0; >+ >- if (wParam) message = SBM_SETRANGEREDRAW; >- wParam = LOWORD(lParam); >- lParam = HIWORD(lParam); >- /* fall through */ >- case SBM_SETRANGEREDRAW: > case SBM_SETRANGE: > { > INT oldPos = SCROLL_GetScrollPos( hwnd, SB_CTL ); >+ SetScrollRange( hwnd, SB_CTL, wParam, lParam, FALSE ); >- SCROLL_SetScrollRange( hwnd, SB_CTL, wParam, lParam ); >- if (message == SBM_SETRANGEREDRAW) >- SCROLL_RefreshScrollBar( hwnd, SB_CTL, TRUE, TRUE ); > if (oldPos != SCROLL_GetScrollPos( hwnd, SB_CTL )) return oldPos; > } > return 0; >@@ -1363,6 +1388,14 @@ > case SBM_ENABLE_ARROWS: > return EnableScrollBar( hwnd, SB_CTL, wParam ); > >+ case SBM_SETRANGEREDRAW: >+ { >+ INT oldPos = SCROLL_GetScrollPos( hwnd, SB_CTL ); >+ SetScrollRange( hwnd, SB_CTL, wParam, lParam, TRUE ); >+ if (oldPos != SCROLL_GetScrollPos( hwnd, SB_CTL )) return oldPos; >+ } >+ return 0; >+ > case SBM_SETSCROLLINFO: > return SetScrollInfo( hwnd, SB_CTL, (SCROLLINFO *)lParam, wParam ); > >@@ -1665,19 +1682,14 @@ > INT maxVal, /* [in] New maximum value */ > BOOL bRedraw /* [in] Should scrollbar be redrawn afterwards ? */) > { >+ SCROLLINFO info; >- BOOL ret; > >+ info.cbSize = sizeof(info); >+ info.nMin = minVal; >+ info.nMax = maxVal; >+ info.fMask = SIF_RANGE; >+ SetScrollInfo( hwnd, nBar, &info, bRedraw ); >+ return TRUE; >- TRACE("hwnd=%p nBar=%d min=%d max=%d\n", hwnd, nBar, minVal, maxVal); >- >- /* Refer SB_CTL requests to the window */ >- if (nBar == SB_CTL) >- ret = SendMessageW(hwnd, SBM_SETRANGE, minVal, maxVal); >- else >- ret = SCROLL_SetScrollRange(hwnd, nBar, minVal, maxVal); >- >- if (bRedraw) >- SCROLL_RefreshScrollBar( hwnd, SB_CTL, TRUE, TRUE ); >- return ret; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56701
: 35185