X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ddff00c923d454f651aba32c8fe3654fd303e43..a56a99abe859f37615251c865bc807bf13e8b180:/src/mgl/app.cpp diff --git a/src/mgl/app.cpp b/src/mgl/app.cpp index f94600c41e..0c0a1ac7d4 100644 --- a/src/mgl/app.cpp +++ b/src/mgl/app.cpp @@ -48,11 +48,9 @@ void wxApp::Exit() // wxYield //----------------------------------------------------------------------------- -static bool gs_inYield = false; - bool wxApp::Yield(bool onlyIfNeeded) { - if ( gs_inYield ) + if ( m_isInsideYield ) { if ( !onlyIfNeeded ) { @@ -70,7 +68,7 @@ bool wxApp::Yield(bool onlyIfNeeded) } #endif // wxUSE_THREADS - gs_inYield = true; + m_isInsideYield = true; wxLog::Suspend(); @@ -88,7 +86,7 @@ bool wxApp::Yield(bool onlyIfNeeded) wxLog::Resume(); - gs_inYield = false; + m_isInsideYield = false; return true; } @@ -201,11 +199,6 @@ static void wxDestroyMGL_WM() IMPLEMENT_DYNAMIC_CLASS(wxApp,wxEvtHandler) -BEGIN_EVENT_TABLE(wxApp, wxEvtHandler) - EVT_IDLE(wxAppBase::OnIdle) -END_EVENT_TABLE() - - wxApp::wxApp() { }