X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be346c263f862da8b73f498b607d583b092c9029..c4a95f6f991fa8685625831e52dc021b89727529:/src/mac/carbon/dcclient.cpp?ds=sidebyside diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index 710a8f89f4..07d0f431fc 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -18,6 +18,7 @@ #include "wx/region.h" #include "wx/window.h" #include "wx/toplevel.h" +#include "wx/settings.h" #include #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 ) ;