X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/814af667d9f1e31d9f54759b4e406209b1a3250f..d109c5849ed117966311a44875c97ae3d77b44e5:/src/mac/carbon/utils.cpp diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 679bf3d1e5..cf7d76b624 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -1706,7 +1706,9 @@ void wxMacControl::Convert( wxPoint *pt , wxMacControl *from , wxMacControl *to 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 ) ;