X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f391ae1547bec52bbe31eec0ba77be9ed558a32..4013de121752b375a10a40ac9eb0e966674b2b24:/src/mac/carbon/dcclient.cpp diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 1164a856d4..4bb189458d 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -230,6 +230,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