From d054b4123c4999da08935e9d3c16685670e36e11 Mon Sep 17 00:00:00 2001 From: Patrik Stridvall <ps@leissner.se> Date: Sat, 24 Oct 1998 13:06:16 +0000 Subject: [PATCH] Check if scrollbar and parent are visible before redraw. --- controls/scroll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/controls/scroll.c b/controls/scroll.c index fb31e74b755..f824cdd3f81 100644 --- a/controls/scroll.c +++ b/controls/scroll.c @@ -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 ); -- GitLab