From 2144aae383d4e188b1e40a592e44e331f27bfa0d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 21 Oct 2007 18:10:16 +0000 Subject: [PATCH] removed inlines, adding straight implementation for Flush git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dcgraph.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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") );