// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "glcanvas.h"
-#endif
-
#include "wx/wxprec.h"
#if defined(__BORLANDC__)
#pragma hdrstop
#endif
-#include "wx/setup.h"
-
#if wxUSE_GLCANVAS
#ifndef WX_PRECOMP
}
else
{
- if ( IsControlVisible( (ControlRef) m_macControl ) && !m_macCanvasIsShown )
+ if ( m_peer->IsVisible()&& !m_macCanvasIsShown )
{
m_macCanvasIsShown = true ;
SetViewport() ;
void wxGLCanvas::MacVisibilityChanged()
{
- if ( !IsControlVisible( (ControlRef) m_macControl ) )
+ if ( !MacIsReallyShown() )
{
if ( m_macCanvasIsShown )
{