Mark Harmstone : comctl32: Always redraw background on checkbox repaint.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Feb 13 07:55:56 CST 2015


Module: wine
Branch: master
Commit: b8d3f1fe247290d5751f3c06c1847929410085a0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b8d3f1fe247290d5751f3c06c1847929410085a0

Author: Mark Harmstone <hellas at burntcomma.com>
Date:   Tue Feb 10 21:58:01 2015 +0000

comctl32: Always redraw background on checkbox repaint.

---

 dlls/comctl32/theme_button.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/theme_button.c b/dlls/comctl32/theme_button.c
index 78d7cc4..0f0db6d 100644
--- a/dlls/comctl32/theme_button.c
+++ b/dlls/comctl32/theme_button.c
@@ -166,8 +166,8 @@ static void CB_draw(HTHEME theme, HWND hwnd, HDC hDC, ButtonState drawState, UIN
     bgRect.right = bgRect.left + cb_size;
     textRect.left = bgRect.right + 6;
 
-    if (IsThemeBackgroundPartiallyTransparent(theme, part, state))
-        DrawThemeParentBackground(hwnd, hDC, NULL);
+    DrawThemeParentBackground(hwnd, hDC, NULL);
+
     DrawThemeBackground(theme, hDC, part, state, &bgRect, NULL);
     if (text)
     {




More information about the wine-cvs mailing list