X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a2b772607a87ffe6fe9af8c0b64b7259ef10a4a4..c061373dc5ba0ed5e3670af0698154302f1fec2c:/src/mac/carbon/utils.cpp diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 4d40792ae2..3e999b65e7 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -40,6 +40,7 @@ #include #endif +#if wxUSE_GUI #if TARGET_API_MAC_OSX #include #else @@ -50,6 +51,7 @@ #include #include #include +#endif // wxUSE_GUI #include "wx/mac/private.h" // includes mac headers @@ -523,7 +525,7 @@ wxString wxMacFindFolder( short vol, wxString strDir ; if ( FSFindFolder( vol, folderType, createFolder, &fsRef) == noErr) - strDir = wxMacFSRefToPath( &fsRef ) ; + strDir = wxMacFSRefToPath( &fsRef ) + wxFILE_SEP_PATH ; return strDir ; } @@ -1706,7 +1708,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 ) ;