warnin - move pict to where it belongs :)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2005-02-14 04:18:53 +00:00
parent 6cac01a672
commit 7fcb33e5f7

View 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