X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..12b5f4b4d2d8a07962da7ba3b78c8c1ec2634a67:/src/mgl/window.cpp diff --git a/src/mgl/window.cpp b/src/mgl/window.cpp index 587ed4cd58..275d2e801e 100644 --- a/src/mgl/window.cpp +++ b/src/mgl/window.cpp @@ -550,7 +550,6 @@ void wxWindowMGL::Init() // mgl specific: m_wnd = NULL; m_isShown = true; - m_frozen = false; m_paintMGLDC = NULL; m_eraseBackground = -1; } @@ -560,8 +559,6 @@ wxWindowMGL::~wxWindowMGL() { SendDestroyEvent(); - m_isBeingDeleted = true; - if ( gs_mouseCapture == this ) ReleaseMouse(); @@ -1119,26 +1116,24 @@ void wxWindowMGL::Refresh(bool eraseBack, const wxRect *rect) void wxWindowMGL::Update() { - if ( !m_frozen ) + if ( !IsFrozen() ) MGL_wmUpdateDC(g_winMng); } -void wxWindowMGL::Freeze() +void wxWindowMGL::DoFreeze() { - m_frozen = true; m_refreshAfterThaw = false; } -void wxWindowMGL::Thaw() +void wxWindowMGL::DoThaw() { - m_frozen = false; if ( m_refreshAfterThaw ) Refresh(); } void wxWindowMGL::HandlePaint(MGLDevCtx *dc) { - if ( m_frozen ) + if ( IsFrozen() ) { // Don't paint anything if the window is frozen. m_refreshAfterThaw = true;