mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Check if scrollbar and parent are visible before redraw.
This commit is contained in:
parent
0913cdf00f
commit
d054b4123c
1 changed files with 1 additions and 0 deletions
|
@ -565,6 +565,7 @@ void SCROLL_DrawScrollBar( HWND32 hwnd, HDC32 hdc, INT32 nBar,
|
|||
if (!wndPtr || !infoPtr ||
|
||||
((nBar == SB_VERT) && !(wndPtr->dwStyle & WS_VSCROLL)) ||
|
||||
((nBar == SB_HORZ) && !(wndPtr->dwStyle & WS_HSCROLL))) return;
|
||||
if (!WIN_IsWindowDrawable( wndPtr, FALSE )) return;
|
||||
|
||||
vertical = SCROLL_GetScrollBarRect( hwnd, nBar, &rect,
|
||||
&arrowSize, &thumbSize, &thumbPos );
|
||||
|
|
Loading…
Reference in a new issue