reworked display mode stuff once again

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-11-04 23:32:52 +00:00
parent 240889a18c
commit 1f43b5c985
3 changed files with 19 additions and 17 deletions

View 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();