#include "wx/msw/private.h" // includes windows.h for MessageBox()
#endif
+#if defined(__WXMAC__)
+ #include "wx/mac/private.h" // includes mac headers
+#endif
+
// ===========================================================================
// implementation
// ===========================================================================
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