visibility changed code fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-03-28 07:30:01 +00:00
parent 39a7aa0467
commit c40f44babb

View File

@@ -320,7 +320,7 @@ bool wxGLCanvas::Show(bool show)
{
if ( !wxWindow::Show( show ) )
return FALSE ;
/*
if ( !show )
{
if ( m_macCanvasIsShown )
@@ -337,12 +337,13 @@ bool wxGLCanvas::Show(bool show)
SetViewport() ;
}
}
*/
return TRUE ;
}
void wxGLCanvas::MacSuperShown( bool show )
void wxGLCanvas::MacVisibilityChanged()
{
if ( !show )
if ( !IsControlVisible( (ControlRef) m_macControl ) )
{
if ( m_macCanvasIsShown )
{
@@ -352,14 +353,13 @@ void wxGLCanvas::MacSuperShown( bool show )
}
else
{
if ( IsControlVisible( (ControlRef) m_macControl ) && !m_macCanvasIsShown )
if ( !m_macCanvasIsShown )
{
m_macCanvasIsShown = true ;
SetViewport() ;
}
}
wxWindow::MacSuperShown( show ) ;
wxWindowMac::MacVisibilityChanged() ;
}
//---------------------------------------------------------------------------