[PATCH] uxtheme: Don't back up colors etc. when a theme is already
active
Frank Richter
frank.richter at gmail.com
Sun Aug 13 20:19:48 CDT 2006
Fixes "colors left behind" after disabling theming when having switched
between different themes.
-------------- next part --------------
>From 626555ace39101eb7768f79852fdd36f3aa5303e Mon Sep 17 00:00:00 2001
From: Frank Richter frank.richter at gmail.com <frank.richter at gmail.com>
Date: Mon, 14 Aug 2006 03:11:09 +0200
Subject: [PATCH] uxtheme: Don't back up colors etc. when a theme is already active
---
dlls/uxtheme/system.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c
index 4799072..347074c 100644
--- a/dlls/uxtheme/system.c
+++ b/dlls/uxtheme/system.c
@@ -412,7 +412,7 @@ HRESULT UXTHEME_SetActiveTheme(PTHEME_FI
WCHAR tmp[2];
HRESULT hr;
- if(tf) UXTHEME_BackupSystemMetrics();
+ if(tf && !bThemeActive) UXTHEME_BackupSystemMetrics();
hr = MSSTYLES_SetActiveTheme(tf, TRUE);
if(FAILED(hr))
return hr;
--
1.4.1.1
More information about the wine-patches
mailing list