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:
Václav Slavík
2001-11-04 23:33:19 +00:00
parent 41b66be9c9
commit 49e885f807

View File

@@ -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