wxThemeInfo *info = ms_allThemes;
while ( info )
{
- if ( name == info->name )
+ if ( name.CmpNoCase(info->name) == 0 )
{
return info->ctor();
}
}
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
}