From: Ryan Norton Date: Mon, 14 Feb 2005 04:18:53 +0000 (+0000) Subject: warnin - move pict to where it belongs :) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7fcb33e5f7911aca4540a2d8a4a9834419c34dd6 warnin - move pict to where it belongs :) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/metafile.cpp b/src/mac/carbon/metafile.cpp index adb8b49a49..d708fe6c79 100644 --- a/src/mac/carbon/metafile.cpp +++ b/src/mac/carbon/metafile.cpp @@ -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(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