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:
@@ -576,6 +576,9 @@ void wxWindowMac::MacControlUserPaneDrawProc(wxInt16 part)
|
|||||||
{
|
{
|
||||||
RgnHandle rgn = NewRgn() ;
|
RgnHandle rgn = NewRgn() ;
|
||||||
GetClip( rgn ) ;
|
GetClip( rgn ) ;
|
||||||
|
int x = 0 , y = 0;
|
||||||
|
MacWindowToRootWindow( &x,&y ) ;
|
||||||
|
OffsetRgn( rgn , -x , -y ) ;
|
||||||
wxMacWindowStateSaver sv( this ) ;
|
wxMacWindowStateSaver sv( this ) ;
|
||||||
SectRgn( rgn , (RgnHandle) MacGetVisibleRegion().GetWXHRGN() , rgn ) ;
|
SectRgn( rgn , (RgnHandle) MacGetVisibleRegion().GetWXHRGN() , rgn ) ;
|
||||||
MacDoRedraw( rgn , 0 ) ;
|
MacDoRedraw( rgn , 0 ) ;
|
||||||
|
Reference in New Issue
Block a user