X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..da2101204027855793c4264388b95a208967ae15:/src/mac/carbon/glcanvas.cpp diff --git a/src/mac/carbon/glcanvas.cpp b/src/mac/carbon/glcanvas.cpp index 14e64fe572..732de7df9f 100644 --- a/src/mac/carbon/glcanvas.cpp +++ b/src/mac/carbon/glcanvas.cpp @@ -331,7 +331,7 @@ bool wxGLCanvas::Show(bool show) } else { - if ( IsControlVisible( (ControlRef) m_macControl ) && !m_macCanvasIsShown ) + if ( IsControlVisible( *m_peer ) && !m_macCanvasIsShown ) { m_macCanvasIsShown = true ; SetViewport() ; @@ -343,7 +343,7 @@ bool wxGLCanvas::Show(bool show) void wxGLCanvas::MacVisibilityChanged() { - if ( !IsControlVisible( (ControlRef) m_macControl ) ) + if ( !IsControlVisible( *m_peer ) ) { if ( m_macCanvasIsShown ) {