]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/app.cpp
Fixed bug with disappearing menus. They were
[wxWidgets.git] / src / mgl / app.cpp
index c6fab2dc9b95f13e96d786d88e8c2aa7c438a4e9..f4790cbc7aa48eceda830e187fd5d213eb25f766 100644 (file)
@@ -142,9 +142,13 @@ class wxRootWindow : public wxWindow
             m_wnd = NULL; 
         }
 
-        virtual bool AcceptsFocus() { return FALSE; }
+        virtual bool AcceptsFocus() const { return FALSE; }
+        
+        DECLARE_DYNAMIC_CLASS(wxRootWindow)
 };
 
+IMPLEMENT_DYNAMIC_CLASS(wxRootWindow, wxWindow)
+
 static wxRootWindow *gs_rootWindow = NULL;
 
 //-----------------------------------------------------------------------------
@@ -408,8 +412,6 @@ bool wxApp::Initialize()
     if ( MGL_init(".", NULL) == 0 )
         return FALSE;
 
-    wxBuffer = new wxChar[BUFSIZ + 512];
-
     wxClassInfo::InitializeClasses();
 
 #if wxUSE_INTL
@@ -493,8 +495,6 @@ void wxApp::CleanUp()
     delete wxTheFontsManager;
     wxTheFontsManager = (wxFontsManager*) NULL;
 
-    delete[] wxBuffer;
-
     // check for memory leaks
 #if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
     if (wxDebugContext::CountObjectsLeft(TRUE) > 0)