]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/theme.cpp
window clipper added
[wxWidgets.git] / src / univ / theme.cpp
index f9e384c6831f4a6c83fd434bb1c2cd58a7195986..d110c5bf0bdf4ef91e4c38f8ebbe44ddff5c8b00 100644 (file)
@@ -64,7 +64,7 @@ wxThemeInfo::wxThemeInfo(Constructor c,
     wxThemeInfo *info = ms_allThemes;
     while ( info )
     {
-        if ( name == info->name )
+        if ( name.CmpNoCase(info->name) == 0 )
         {
             return info->ctor();
         }
@@ -97,11 +97,11 @@ wxThemeInfo::wxThemeInfo(Constructor c,
     }
     else // use native theme by default
     {
-        #if defined(__WXMSW__)
-            nameDefTheme = _T("win32");
-        #elif defined(__WXGTK__)
+        #if defined(__WXGTK__)
             nameDefTheme = _T("gtk");
-        #elif defined(__WXMGL__)
+        #elif defined(__WXX11__)
+            nameDefTheme = _T("win32");
+        #else
             nameDefTheme = _T("win32");
         #endif
     }