]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/glcanvas.cpp
#include "wx/settings.h" wxSystemSettings is needed by non-OSX code.
[wxWidgets.git] / src / mac / carbon / glcanvas.cpp
index 14e64fe57245de4a230aa3454583551607a93f35..facd34a510bd3229c5d265e40aca9488619a47fc 100644 (file)
@@ -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 )
         {