diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index cea03f23ef..8fe9f259e5 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -27,6 +27,9 @@ #include "wx/region.h" #endif +#ifdef __WXMAC__ +#include "wx/mac/private.h" +#endif //----------------------------------------------------------------------------- // constants //----------------------------------------------------------------------------- @@ -138,6 +141,29 @@ void wxGCDC::DoDrawIcon( const wxIcon &icon, wxCoord x, wxCoord y ) m_graphicContext->DrawIcon( icon , x, y, w, h ); } +bool wxGCDC::StartDoc( const wxString& WXUNUSED(message) ) +{ +} + +void wxGCDC::EndDoc() +{ +} + +void wxGCDC::StartPage() +{ +} + +void wxGCDC::EndPage() +{ +} + +void wxGCDC::Flush() +{ +#ifdef __WXMAC__ + CGContextFlush( (CGContextRef) m_graphicContext->GetNativeContext() ); +#endif +} + void wxGCDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord w, wxCoord h ) { wxCHECK_RET( Ok(), wxT("wxGCDC(cg)::DoSetClippingRegion - invalid DC") );