Can switch between clipping code mroe easily

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-04-17 20:22:59 +00:00
parent ca5020c229
commit de996ce082
2 changed files with 4 additions and 2 deletions

View File

@@ -89,12 +89,13 @@ wxMacWindowClipper::wxMacWindowClipper( const wxWindow* win )
OffsetRgn( m_newClip , x , y ) ;
SetClip( m_newClip ) ;
DisposeRgn( insidergn ) ;
#endif
#else
int x = 0 , y = 0;
win->MacWindowToRootWindow( &x,&y ) ;
CopyRgn( (RgnHandle) ((wxWindow*)win)->MacGetVisibleRegion().GetWXHRGN() , m_newClip ) ;
OffsetRgn( m_newClip , x , y ) ;
SetClip( m_newClip ) ;
#endif
}
}