X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c40f44babbf6230b3c47ccc2d0e947d00b7075df..8300f815fa5f0e9486d14b057ce8fdda5785549b:/src/mac/carbon/glcanvas.cpp diff --git a/src/mac/carbon/glcanvas.cpp b/src/mac/carbon/glcanvas.cpp index e6a8b50a69..facd34a510 100644 --- a/src/mac/carbon/glcanvas.cpp +++ b/src/mac/carbon/glcanvas.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: glcanvas.cpp -// Purpose: wxGLCanvas, for using OpenGL with wxWindows under Macintosh +// Purpose: wxGLCanvas, for using OpenGL with wxWidgets under Macintosh // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 @@ -331,7 +331,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 +343,7 @@ bool wxGLCanvas::Show(bool show) void wxGLCanvas::MacVisibilityChanged() { - if ( !IsControlVisible( (ControlRef) m_macControl ) ) + if ( !MacIsReallyShown() ) { if ( m_macCanvasIsShown ) {