X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f391ae1547bec52bbe31eec0ba77be9ed558a32..5f7348ce627157e21bec507623ebd31c1e9dc762:/src/mac/carbon/dcclient.cpp diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 1164a856d4..501e990226 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -35,11 +35,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 +228,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