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() ;
+ CGContextRef cg = ((wxMacCGContext*)(dc->GetGraphicContext()))->GetNativeContext() ;
CGRect bounds = QDPictGetBounds( cgPictRef ) ;
CGContextSaveGState(cg);
QDPictDrawToCGContext( cg , bounds , cgPictRef ) ;
CGContextRestoreGState( cg ) ;
#else
+ PicHandle pict = (PicHandle) GetHMETAFILE() ;
wxMacPortSetter helper( dc ) ;
DrawPicture( pict , &(**pict).picFrame ) ;
#endif