end with fatal error if cannot start MGL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-01-17 23:42:37 +00:00
parent 20af94c86b
commit 7b9f73d205

View File

@@ -476,7 +476,10 @@ void wxWindowMGL::Init()
// First of all, make sure window manager is up and running. If it is // First of all, make sure window manager is up and running. If it is
// not the case, initialize it in default display mode // not the case, initialize it in default display mode
if ( !g_winMng ) if ( !g_winMng )
wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()); {
if ( !wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()) )
wxFatalError(_("Cannot initialize display."));
}
// generic: // generic:
InitBase(); InitBase();