]> git.saurik.com Git - wxWidgets.git/commitdiff
warnin - move pict to where it belongs :)
authorRyan Norton <wxprojects@comcast.net>
Mon, 14 Feb 2005 04:18:53 +0000 (04:18 +0000)
committerRyan Norton <wxprojects@comcast.net>
Mon, 14 Feb 2005 04:18:53 +0000 (04:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/metafile.cpp

index adb8b49a4970fce432087c10213dec7c94f64f9a..d708fe6c79ccbacc1825d256d2fc183efcccaef1 100644 (file)
@@ -166,7 +166,6 @@ bool wxMetaFile::Play(wxDC *dc)
         return FALSE;
         
     {
-        PicHandle pict = (PicHandle) GetHMETAFILE() ;
 #if wxMAC_USE_CORE_GRAPHICS
         QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef ;
         CGContextRef cg = dynamic_cast<wxMacCGContext*>(dc->GetGraphicContext())->GetNativeContext() ;
@@ -178,6 +177,7 @@ bool wxMetaFile::Play(wxDC *dc)
         QDPictDrawToCGContext( cg , bounds , cgPictRef ) ;
         CGContextRestoreGState( cg ) ;
 #else
+        PicHandle pict = (PicHandle) GetHMETAFILE() ;
         wxMacPortSetter helper( dc ) ;
         DrawPicture( pict , &(**pict).picFrame ) ;
 #endif