]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dcclient.cpp
implemented MSWGetBgBrush/ColourForChild() to propagate themed notebook background...
[wxWidgets.git] / src / mac / carbon / dcclient.cpp
index 710a8f89f43c3fb1813dee51d8092b136371d22e..07d0f431fcecebced5b5408f62c884a19a438595 100644 (file)
@@ -18,6 +18,7 @@
 #include "wx/region.h"
 #include "wx/window.h"
 #include "wx/toplevel.h"
+#include "wx/settings.h"
 #include <math.h>
 #include "wx/mac/private.h"
 
@@ -114,7 +115,7 @@ wxWindowDC::wxWindowDC(wxWindow *window)
     window->MacWindowToRootWindow( &x , &y ) ;
     m_macLocalOrigin.x = x ;
     m_macLocalOrigin.y = y ;
-    CopyRgn( (RgnHandle) window->MacGetVisibleRegion().GetWXHRGN() , (RgnHandle) m_macBoundaryClipRgn ) ;
+    CopyRgn( (RgnHandle) window->MacGetVisibleRegion(true).GetWXHRGN() , (RgnHandle) m_macBoundaryClipRgn ) ;
     OffsetRgn( (RgnHandle) m_macBoundaryClipRgn , m_macLocalOrigin.x , m_macLocalOrigin.y ) ;
     CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
     m_macPort = UMAGetWindowPort( windowref ) ;