X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/mac/carbon/glcanvas.cpp diff --git a/src/mac/carbon/glcanvas.cpp b/src/mac/carbon/glcanvas.cpp index 14e64fe572..7f44e45910 100644 --- a/src/mac/carbon/glcanvas.cpp +++ b/src/mac/carbon/glcanvas.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "glcanvas.h" #endif @@ -19,8 +19,6 @@ #pragma hdrstop #endif -#include "wx/setup.h" - #if wxUSE_GLCANVAS #ifndef WX_PRECOMP @@ -331,7 +329,7 @@ bool wxGLCanvas::Show(bool show) } else { - if ( IsControlVisible( (ControlRef) m_macControl ) && !m_macCanvasIsShown ) + if ( m_peer->IsVisible()&& !m_macCanvasIsShown ) { m_macCanvasIsShown = true ; SetViewport() ; @@ -343,7 +341,7 @@ bool wxGLCanvas::Show(bool show) void wxGLCanvas::MacVisibilityChanged() { - if ( !IsControlVisible( (ControlRef) m_macControl ) ) + if ( !MacIsReallyShown() ) { if ( m_macCanvasIsShown ) {