From f4841924a0f2f6a97e77a9fd86c6e29eef56db89 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 27 Jun 2003 19:48:11 +0000 Subject: [PATCH] resetting clipping region (needed because of faster port setting) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dcclient.cpp | 5 +++++ src/mac/dcclient.cpp | 5 +++++ 2 files changed, 10 insertions(+) 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 ) ; } /*