X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f74e0d132e73250ef422c06175dcf7e4146ec57..d2af7584c06c501864ae0976535a7f99e91d8fd5:/src/mac/carbon/metafile.cpp diff --git a/src/mac/carbon/metafile.cpp b/src/mac/carbon/metafile.cpp index 00a3fdc09a..a99899b188 100644 --- a/src/mac/carbon/metafile.cpp +++ b/src/mac/carbon/metafile.cpp @@ -25,6 +25,7 @@ #include "wx/metafile.h" #include "wx/clipbrd.h" #include "wx/mac/private.h" +#include "wx/graphics.h" #include #include @@ -166,7 +167,7 @@ bool wxMetaFile::Play(wxDC *dc) #if wxMAC_USE_CORE_GRAPHICS #ifndef __LP64__ QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef; - CGContextRef cg = ((wxMacCGContext*)(dc->GetGraphicContext()))->GetNativeContext(); + CGContextRef cg = (CGContextRef) dc->GetGraphicsContext()->GetNativeContext(); CGRect bounds = QDPictGetBounds( cgPictRef ); CGContextSaveGState( cg );