]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/window.cpp
Last correction for makefile.g95: win32 mkdir does not like forward slashes as directory
[wxWidgets.git] / src / mgl / window.cpp
index 6b6c5df6e5d57126fa7b17fdf836993f518356b0..3f98b46db10feafcc3834dc5b433d0984cf7c569 100644 (file)
@@ -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();