Commit f8671aae authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

comctl32/theme_scrollbar: Draw parent background before drawing control parts.

Control parts may be transparent, thus they need to be drawn on top of parent window background. Otherwise, black artifacts may occur. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent bf6ed90c
......@@ -332,6 +332,8 @@ static void paint_scrollbar(HWND hwnd, HTHEME theme)
else
state = SZB_RIGHTALIGN;
if (IsThemeBackgroundPartiallyTransparent(theme, SBP_SIZEBOX, state))
DrawThemeParentBackground(hwnd, dc, NULL);
DrawThemeBackground(theme, dc, SBP_SIZEBOX, state, &r, NULL);
} else {
SCROLLINFO si;
......@@ -365,6 +367,8 @@ static void paint_scrollbar(HWND hwnd, HTHEME theme)
}
}
DrawThemeParentBackground(hwnd, dc, NULL);
if (vertical) {
SIZE upsize, downsize;
int uparrowstate, downarrowstate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment