git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29325
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxMacControl::SetRect( Rect *r )
{
#if TARGET_API_MAC_OSX
void wxMacControl::SetRect( Rect *r )
{
#if TARGET_API_MAC_OSX
- HIRect hir = { r->left , r->top , r->right - r->left , r->bottom - r->top } ;
+ //A HIRect is actually a CGRect on OSX - which consists of two structures -
+ //CGPoint and CGSize, which have two floats each
+ HIRect hir = { { r->left , r->top }, { r->right - r->left , r->bottom - r->top } } ;
HIViewSetFrame ( m_controlRef , &hir ) ;
#else
SetControlBounds( m_controlRef , r ) ;
HIViewSetFrame ( m_controlRef , &hir ) ;
#else
SetControlBounds( m_controlRef , r ) ;