fixing redraw region

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-04-13 06:02:16 +00:00
parent b4fd164d9c
commit d35bd4992e

View File

@@ -576,6 +576,9 @@ void wxWindowMac::MacControlUserPaneDrawProc(wxInt16 part)
{
RgnHandle rgn = NewRgn() ;
GetClip( rgn ) ;
int x = 0 , y = 0;
MacWindowToRootWindow( &x,&y ) ;
OffsetRgn( rgn , -x , -y ) ;
wxMacWindowStateSaver sv( this ) ;
SectRgn( rgn , (RgnHandle) MacGetVisibleRegion().GetWXHRGN() , rgn ) ;
MacDoRedraw( rgn , 0 ) ;