From: Stefan Csomor Date: Fri, 17 Mar 2006 18:29:14 +0000 (+0000) Subject: intel pict fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7358f9073d0aa5b361850b377bd9c044a5fb1921 intel pict fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index 752a9be73b..3941352de7 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -816,6 +816,19 @@ private : ControlRef wxMacFindControlUnderMouse( wxTopLevelWindowMac* toplevelWindow, const Point& location , WindowRef window , ControlPartCode *outPart ) ; +#if WORDS_BIGENDIAN + inline Rect* wxMacGetPictureBounds( PicHandle pict , Rect* rect ) + { + *rect = (**pict).picFrame ; + return rect ; + } +#else + inline Rect* wxMacGetPictureBounds( PicHandle pict , Rect* rect ) + { + return QDGetPictureBounds( pict , rect ) ; + } +#endif + #endif // wxUSE_GUI #define wxMAC_DEFINE_PROC_GETTER( UPP , x ) \