#include "wx/metafile.h"
#include "wx/clipbrd.h"
#include "wx/mac/private.h"
+#include "wx/graphics.h"
#include <stdio.h>
#include <string.h>
#if wxMAC_USE_CORE_GRAPHICS
#ifndef __LP64__
QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef;
- CGContextRef cg = (CGContextRef) dc->GetGraphicContext()->GetNativeContext();
+ CGContextRef cg = (CGContextRef) dc->GetGraphicsContext()->GetNativeContext();
CGRect bounds = QDPictGetBounds( cgPictRef );
CGContextSaveGState( cg );