X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72bb8cf5117f6c97f88e6bfd9e47f89185ffac67..bf473da729e2be34f890d8b9c9af4a4143f1647b:/src/mac/carbon/glcanvas.cpp?ds=sidebyside diff --git a/src/mac/carbon/glcanvas.cpp b/src/mac/carbon/glcanvas.cpp index 732de7df9f..ac3533cefc 100644 --- a/src/mac/carbon/glcanvas.cpp +++ b/src/mac/carbon/glcanvas.cpp @@ -9,18 +9,12 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "glcanvas.h" -#endif - #include "wx/wxprec.h" #if defined(__BORLANDC__) #pragma hdrstop #endif -#include "wx/setup.h" - #if wxUSE_GLCANVAS #ifndef WX_PRECOMP @@ -331,7 +325,7 @@ bool wxGLCanvas::Show(bool show) } else { - if ( IsControlVisible( *m_peer ) && !m_macCanvasIsShown ) + if ( m_peer->IsVisible()&& !m_macCanvasIsShown ) { m_macCanvasIsShown = true ; SetViewport() ; @@ -343,7 +337,7 @@ bool wxGLCanvas::Show(bool show) void wxGLCanvas::MacVisibilityChanged() { - if ( !IsControlVisible( *m_peer ) ) + if ( !MacIsReallyShown() ) { if ( m_macCanvasIsShown ) {