git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67231
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- m_peer->GetBestRect(&r);
+ GetPeer()->GetBestRect(&r);
if ( r.GetWidth() == 0 && r.GetHeight() == 0 )
{
if ( r.GetWidth() == 0 && r.GetHeight() == 0 )
{
[NSNumber numberWithBool:NO], kEAGLDrawablePropertyRetainedBacking,
kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat, nil];
[NSNumber numberWithBool:NO], kEAGLDrawablePropertyRetainedBacking,
kEAGLColorFormatRGBA8, kEAGLDrawablePropertyColorFormat, nil];
- m_peer = new wxWidgetIPhoneImpl( this, v );
+ SetPeer(new wxWidgetIPhoneImpl( this, v ));
MacPostControlCreate(pos, size) ;
#endif
MacPostControlCreate(pos, size) ;
#endif
WXGLContext context = WXGLGetCurrentContext();
wxCHECK_MSG(context, false, wxT("should have current context"));
WXGLContext context = WXGLGetCurrentContext();
wxCHECK_MSG(context, false, wxT("should have current context"));
- wxUICustomOpenGLView* v = (wxUICustomOpenGLView*) m_peer->GetWXWidget();
+ wxUICustomOpenGLView* v = (wxUICustomOpenGLView*) GetPeer()->GetWXWidget();
[v swapBuffers];
return true;
}
[v swapBuffers];
return true;
}
}
m_macToolbar = toolbar;
}
m_macToolbar = toolbar;
- m_peer = new wxWidgetIPhoneImpl( this, toolbar );
+ SetPeer(new wxWidgetIPhoneImpl( this, toolbar ));
MacPostControlCreate(pos, size) ;
}
MacPostControlCreate(pos, size) ;
}