From 130c655e2fa0fd7d1bf0dc385ea1511a2572834b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Wed, 19 Aug 2015 06:24:19 +0200 Subject: [PATCH] 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 8bc3c880980..1f4818bffeb 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;