]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dcclient.cpp
Copy about.htm
[wxWidgets.git] / src / mac / carbon / dcclient.cpp
index 1164a856d4c62cf7cb6c324d95d1134c30baf243..4bb189458d514b85edb527ec142659e05e686e3c 100644 (file)
@@ -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