OnInitCmdLine(parser);
bool cont;
- switch ( parser.Parse() )
+ switch ( parser.Parse(FALSE /* don't show usage */) )
{
case -1:
cont = OnCmdLineHelp(parser);
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
+#endif // __WXMGL__
return TRUE;
}
{
#if defined(__WXMSW__) && !defined(__WXMICROWIN__)
DebugBreak();
-#elif defined(__WXMAC__)
+#elif defined(__WXMAC__) && !defined(__DARWIN__)
#if __powerc
Debugger();
#else