// 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));
+ {
+ if ( !wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()) )
+ wxFatalError(_("Cannot initialize display."));
+ }
// generic:
InitBase();