X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/634f6a1f0a5e863305bf1152e287fdf486433eee..6433f6d3165a3f8633f42c59694a9104a7b37a93:/src/mgl/window.cpp diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 6b6c5df6e5..3f98b46db1 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -466,6 +466,11 @@ END_EVENT_TABLE() 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(wxDisplayModeInfo(wxSize(640, 480), 16)); + // generic: InitBase();