X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b43a988613537e165d412d09297c0e5e676b1d03..d7d176241e313dc60b47cc967ddbc6018309d286:/src/mgl/window.cpp diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 217508e325..f749bc1251 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -469,12 +469,14 @@ END_EVENT_TABLE() // constructors and such // ---------------------------------------------------------------------------- +extern wxDisplayModeInfo wxGetDefaultDisplayMode(); + 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(640, 480, 16)); + wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()); // generic: InitBase();