diff --git a/src/mac/carbon/dcclient.cpp b/src/mac/carbon/dcclient.cpp index bc1a0827a4..2dc8c93ce8 100644 --- a/src/mac/carbon/dcclient.cpp +++ b/src/mac/carbon/dcclient.cpp @@ -72,6 +72,11 @@ wxWindowDC::wxWindowDC(wxWindow *the_canvas) wxWindowDC::~wxWindowDC() { + // set clipping region to full window so that the OS can draw controls everywhere + RgnHandle visRgn = NewRgn() ; + GetPortVisibleRegion( (CGrafPtr) m_macPort , visRgn ); + SetPortClipRegion( (CGrafPtr) m_macPort , visRgn ) ; + DisposeRgn( visRgn ) ; } /* diff --git a/src/mac/dcclient.cpp b/src/mac/dcclient.cpp index bc1a0827a4..2dc8c93ce8 100644 --- a/src/mac/dcclient.cpp +++ b/src/mac/dcclient.cpp @@ -72,6 +72,11 @@ wxWindowDC::wxWindowDC(wxWindow *the_canvas) wxWindowDC::~wxWindowDC() { + // set clipping region to full window so that the OS can draw controls everywhere + RgnHandle visRgn = NewRgn() ; + GetPortVisibleRegion( (CGrafPtr) m_macPort , visRgn ); + SetPortClipRegion( (CGrafPtr) m_macPort , visRgn ) ; + DisposeRgn( visRgn ) ; } /*