Commit 9b5df952 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

comctl32/toolbar: Don't use pattern brushes to draw checked background.

parent 7f491491
...@@ -2666,7 +2666,6 @@ static void test_visual(void) ...@@ -2666,7 +2666,6 @@ static void test_visual(void)
toolbar_dc = GetDC(toolbar); toolbar_dc = GetDC(toolbar);
color = GetPixel(toolbar_dc, 5, 5); color = GetPixel(toolbar_dc, 5, 5);
if (is_theme_active) if (is_theme_active)
todo_wine
ok(color != RGB(0xff, 0, 0), "Unexpected color %#lx.\n", color); ok(color != RGB(0xff, 0, 0), "Unexpected color %#lx.\n", color);
else else
ok(color == RGB(0xff, 0, 0), "Unexpected color %#lx.\n", color); ok(color == RGB(0xff, 0, 0), "Unexpected color %#lx.\n", color);
......
...@@ -1042,7 +1042,7 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc, ...@@ -1042,7 +1042,7 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, HDC hdc,
(btnPtr->fsState & (TBSTATE_PRESSED | TBSTATE_CHECKED))) (btnPtr->fsState & (TBSTATE_PRESSED | TBSTATE_CHECKED)))
OffsetRect(&rcText, 1, 1); OffsetRect(&rcText, 1, 1);
if (!(tbcd.nmcd.uItemState & CDIS_HOT) && if (!theme && !(tbcd.nmcd.uItemState & CDIS_HOT) &&
((tbcd.nmcd.uItemState & CDIS_CHECKED) || (tbcd.nmcd.uItemState & CDIS_INDETERMINATE))) ((tbcd.nmcd.uItemState & CDIS_CHECKED) || (tbcd.nmcd.uItemState & CDIS_INDETERMINATE)))
TOOLBAR_DrawPattern (&rc, &tbcd); TOOLBAR_DrawPattern (&rc, &tbcd);
......
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