/////////////////////////////////////////////////////////////////////////////
// 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
{
if ( !wxWindow::Show( show ) )
return FALSE ;
-
+/*
if ( !show )
{
if ( m_macCanvasIsShown )
}
else
{
- if ( IsControlVisible( (ControlRef) m_macControl ) && !m_macCanvasIsShown )
+ if ( IsControlVisible( *m_peer ) && !m_macCanvasIsShown )
{
m_macCanvasIsShown = true ;
SetViewport() ;
}
}
+*/
return TRUE ;
}
-void wxGLCanvas::MacSuperShown( bool show )
+void wxGLCanvas::MacVisibilityChanged()
{
- if ( !show )
+ if ( !IsControlVisible( *m_peer ) )
{
if ( m_macCanvasIsShown )
{
}
else
{
- if ( IsControlVisible( (ControlRef) m_macControl ) && !m_macCanvasIsShown )
+ if ( !m_macCanvasIsShown )
{
m_macCanvasIsShown = true ;
SetViewport() ;
}
}
-
- wxWindow::MacSuperShown( show ) ;
+ wxWindowMac::MacVisibilityChanged() ;
}
//---------------------------------------------------------------------------