introduction of m_peer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -331,7 +331,7 @@ bool wxGLCanvas::Show(bool show)
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( IsControlVisible( (ControlRef) m_macControl ) && !m_macCanvasIsShown )
|
||||
if ( IsControlVisible( *m_peer ) && !m_macCanvasIsShown )
|
||||
{
|
||||
m_macCanvasIsShown = true ;
|
||||
SetViewport() ;
|
||||
@@ -343,7 +343,7 @@ bool wxGLCanvas::Show(bool show)
|
||||
|
||||
void wxGLCanvas::MacVisibilityChanged()
|
||||
{
|
||||
if ( !IsControlVisible( (ControlRef) m_macControl ) )
|
||||
if ( !IsControlVisible( *m_peer ) )
|
||||
{
|
||||
if ( m_macCanvasIsShown )
|
||||
{
|
||||
|
Reference in New Issue
Block a user