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:
@@ -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 ) ;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -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 ) ;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user