]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/theme.cpp
avoiding nesting dcs on the same window concurrently
[wxWidgets.git] / src / univ / theme.cpp
index 2eb31fb1d4af442b68a6e801eec3ef04408a05af..4f89ceb076b311cd9d7b83ae465c0510d2446449 100644 (file)
@@ -93,16 +93,12 @@ wxThemeInfo::wxThemeInfo(Constructor c,
     {
         nameDefTheme = p;
     }
+#ifdef wxUNIV_DEFAULT_THEME
     else // use native theme by default
     {
-        #if defined(__WXGTK__)
-            nameDefTheme = _T("gtk");
-        #elif defined(__WXX11__)
-            nameDefTheme = _T("win32");
-        #else
-            nameDefTheme = _T("win32");
-        #endif
+        nameDefTheme = wxSTRINGIZE_T(wxUNIV_DEFAULT_THEME);
     }
+#endif // wxUNIV_DEFAULT_THEME
 
     wxTheme *theme = Create(nameDefTheme);