moved MGL initialization to earlier stage (crashes otherwise...) and implemented wxApp::Initialized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,8 +144,6 @@ wxApp::~wxApp()
|
|||||||
|
|
||||||
bool wxApp::OnInitGui()
|
bool wxApp::OnInitGui()
|
||||||
{
|
{
|
||||||
if ( MGL_init(".", NULL) == 0 )
|
|
||||||
return FALSE;
|
|
||||||
if ( !wxCreateMGL_WM() )
|
if ( !wxCreateMGL_WM() )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
@@ -256,9 +254,7 @@ void wxApp::ExitMainLoop()
|
|||||||
|
|
||||||
bool wxApp::Initialized()
|
bool wxApp::Initialized()
|
||||||
{
|
{
|
||||||
// FIXME_MGL -- only for now because we don't have wxFrame/wxDialog yet
|
return (wxTopLevelWindows.GetCount() != 0);
|
||||||
return TRUE;
|
|
||||||
//return (wxTopLevelWindows.GetCount() != 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxApp::Pending()
|
bool wxApp::Pending()
|
||||||
@@ -289,6 +285,9 @@ void wxApp::DeletePendingObjects()
|
|||||||
|
|
||||||
bool wxApp::Initialize()
|
bool wxApp::Initialize()
|
||||||
{
|
{
|
||||||
|
if ( MGL_init(".", NULL) == 0 )
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
wxBuffer = new wxChar[BUFSIZ + 512];
|
wxBuffer = new wxChar[BUFSIZ + 512];
|
||||||
|
|
||||||
wxClassInfo::InitializeClasses();
|
wxClassInfo::InitializeClasses();
|
||||||
|
Reference in New Issue
Block a user