X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7862d3e499501dfc5d6103146cae51f2488c9af..a201463482dc4417592ee014ff1a9706e8971dd6:/src/mac/carbon/metafile.cpp diff --git a/src/mac/carbon/metafile.cpp b/src/mac/carbon/metafile.cpp index 1ed5081a6b..07a905760f 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 = (CGContextRef) dc->GetGraphicContext()->GetNativeContext(); + CGContextRef cg = (CGContextRef) dc->GetGraphicsContext()->GetNativeContext(); CGRect bounds = QDPictGetBounds( cgPictRef ); CGContextSaveGState( cg ); @@ -214,7 +215,7 @@ wxMetaFileDC::wxMetaFileDC( int width, int height, const wxString& WXUNUSED(description) ) { - wxASSERT_MSG( width <= 0 || height <= 0, wxT("no arbitration of metafile size supported") ); + wxASSERT_MSG( width != 0 || height != 0, wxT("no arbitration of metafile size supported") ); wxASSERT_MSG( filename.empty(), wxT("no file based metafile support yet")); m_metaFile = new wxMetaFile( filename );