git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12322
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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