From: Václav Slavík Date: Thu, 17 Jan 2002 23:42:37 +0000 (+0000) Subject: end with fatal error if cannot start MGL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7b9f73d205e75635fd3cd6c19cce1d8edf91b045 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 --- diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index f749bc1251..170bf9cb43 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -476,7 +476,10 @@ void wxWindowMGL::Init() // First of all, make sure window manager is up and running. If it is // not the case, initialize it in default display mode if ( !g_winMng ) - wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()); + { + if ( !wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()) ) + wxFatalError(_("Cannot initialize display.")); + } // generic: InitBase();