fixed stupid bug in display mode error reporting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -279,12 +279,13 @@ bool wxAppBase::OnCmdLineParsed(wxCmdLineParser& 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(wxSize(w, h), bpp)) )
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user