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:
@@ -166,7 +166,6 @@ bool wxMetaFile::Play(wxDC *dc)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
{
|
{
|
||||||
PicHandle pict = (PicHandle) GetHMETAFILE() ;
|
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef ;
|
QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef ;
|
||||||
CGContextRef cg = dynamic_cast<wxMacCGContext*>(dc->GetGraphicContext())->GetNativeContext() ;
|
CGContextRef cg = dynamic_cast<wxMacCGContext*>(dc->GetGraphicContext())->GetNativeContext() ;
|
||||||
@@ -178,6 +177,7 @@ bool wxMetaFile::Play(wxDC *dc)
|
|||||||
QDPictDrawToCGContext( cg , bounds , cgPictRef ) ;
|
QDPictDrawToCGContext( cg , bounds , cgPictRef ) ;
|
||||||
CGContextRestoreGState( cg ) ;
|
CGContextRestoreGState( cg ) ;
|
||||||
#else
|
#else
|
||||||
|
PicHandle pict = (PicHandle) GetHMETAFILE() ;
|
||||||
wxMacPortSetter helper( dc ) ;
|
wxMacPortSetter helper( dc ) ;
|
||||||
DrawPicture( pict , &(**pict).picFrame ) ;
|
DrawPicture( pict , &(**pict).picFrame ) ;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user