=?UTF-8?Q?Michael=20M=C3=BCller=20?=: winecfg: Do not overwrite theme each time an item is drawn.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 19 09:56:01 CDT 2015


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

Author: Michael Müller <michael at fds-team.de>
Date:   Wed Aug 19 06:24:19 2015 +0200

winecfg: Do not overwrite theme each time an item is drawn.

---

 programs/winecfg/theme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c
index 8bc3c88..1f4818b 100644
--- a/programs/winecfg/theme.c
+++ b/programs/winecfg/theme.c
@@ -1094,7 +1094,7 @@ static void on_draw_item(HWND hDlg, WPARAM wParam, LPARAM lParam)
         HTHEME theme;
         RECT buttonrect;
 
-        theme = OpenThemeData(draw_info->hwndItem, WC_BUTTONW);
+        theme = OpenThemeData(NULL, WC_BUTTONW);
 
         if (theme) {
             MARGINS margins;




More information about the wine-cvs mailing list