X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f391ae1547bec52bbe31eec0ba77be9ed558a32..2ddb4d13585d5235556119fb1937273da9e433a3:/src/mac/carbon/dcclient.cpp diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 1164a856d4..64b73c74f4 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "dcclient.h" -#endif - #include "wx/wxprec.h" #include "wx/dcclient.h" @@ -35,11 +31,9 @@ // wxPaintDC //----------------------------------------------------------------------------- -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC) IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC) IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxWindowDC) -#endif /* * wxWindowDC @@ -230,6 +224,15 @@ wxClientDC::wxClientDC(wxWindow *window) wxClientDC::~wxClientDC() { +#if wxMAC_USE_CORE_GRAPHICS +/* + if ( m_window->MacGetCGContextRef() == 0) + { + CGContextRef cgContext = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ; + CGContextFlush( cgContext ) ; + } +*/ +#endif } void wxClientDC::DoGetSize(int *width, int *height) const