]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/metafile.cpp
intel pict fixes
[wxWidgets.git] / src / mac / carbon / metafile.cpp
index 2aabd1d709286b86933a1eb562228a9a5ec32fac..ef560d445d5277095452cdf2cc82727cc68c594e 100644 (file)
@@ -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 ;
     }