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
This commit is contained in:
Stefan Csomor
2003-06-27 19:48:11 +00:00
parent f73cf2885e
commit f4841924a0
2 changed files with 10 additions and 0 deletions

View File

@@ -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 ) ;
}
/*

View File

@@ -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 ) ;
}
/*