From: Stefan Csomor Date: Fri, 17 Mar 2006 10:39:56 +0000 (+0000) Subject: intel pict fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1cf9b41c2db31c498547849f6ebf5532f9e94107 intel pict fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/dataobj.cpp b/src/mac/carbon/dataobj.cpp index e216ad5887..dd1ab8a38d 100644 --- a/src/mac/carbon/dataobj.cpp +++ b/src/mac/carbon/dataobj.cpp @@ -342,7 +342,8 @@ bool wxBitmapDataObject::SetData( size_t nSize, const void *pBuf ) // ownership is transferred to the bitmap m_pictCreated = false; - Rect frame = (**picHandle).picFrame; + Rect frame ; + wxMacGetPictureBounds( picHandle , &frame ) ; wxMetafile mf; mf.SetHMETAFILE( (WXHMETAFILE)m_pictHandle ); diff --git a/src/mac/carbon/metafile.cpp b/src/mac/carbon/metafile.cpp index 2aabd1d709..ef560d445d 100644 --- a/src/mac/carbon/metafile.cpp +++ b/src/mac/carbon/metafile.cpp @@ -178,7 +178,8 @@ bool wxMetaFile::Play(wxDC *dc) #else PicHandle pict = (PicHandle) GetHMETAFILE(); wxMacPortSetter helper( dc ); - DrawPicture( pict , &(**pict).picFrame ); + Rect picFrame ; + DrawPicture( pict , wxMacGetPictureBounds( pict , &picFrame ) ); #endif } @@ -192,7 +193,8 @@ wxSize wxMetaFile::GetSize() const if ( Ok() ) { PicHandle pict = (PicHandle) GetHMETAFILE() ; - Rect &r = (**pict).picFrame ; + Rect r ; + wxMacGetPictureBounds( pict , &r ) ; size.x = r.right - r.left ; size.y = r.bottom - r.top ; }