unsigned w, h, bpp;
if ( wxSscanf(modeDesc.c_str(), _T("%ux%u-%u"), &w, &h, &bpp) != 3 )
{
- wxLogError(_("Unsupported display mode '%s'."), themeName.c_str());
+ wxLogError(_("Invalid display mode specification '%s'."), modeDesc.c_str());
return FALSE;
}
- SetDisplayMode(wxDisplayModeInfo(wxSize(w, h), bpp));
+ if ( !SetDisplayMode(wxDisplayModeInfo(w, h, bpp)) )
+ return FALSE;
}
#endif
{
#if defined(__WXMSW__) && !defined(__WXMICROWIN__)
DebugBreak();
-#elif defined(__WXMAC__)
+#elif defined(__WXMAC__) && !defined(__DARWIN__)
#if __powerc
Debugger();
#else