X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/442b35b53bf95f5c6c003ea9ddbefd17adbc2a00..e11f2e1645e5322b8f44112733bd663927cf7783:/src/univ/theme.cpp diff --git a/src/univ/theme.cpp b/src/univ/theme.cpp index 026dc29899..d110c5bf0b 100644 --- a/src/univ/theme.cpp +++ b/src/univ/theme.cpp @@ -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,10 +97,12 @@ 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(__WXX11__) + nameDefTheme = _T("win32"); + #else + nameDefTheme = _T("win32"); #endif }