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() ;
|
||||
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 ) ;
|
||||
@@ -2717,7 +2720,7 @@ void wxWindowMac::ClearBackground()
|
||||
void wxWindowMac::Update()
|
||||
{
|
||||
#if TARGET_API_MAC_OSX
|
||||
MacGetTopLevelWindow()->MacPerformUpdates() ;
|
||||
MacGetTopLevelWindow()->MacPerformUpdates() ;
|
||||
#else
|
||||
::Draw1Control( m_peer->GetControlRef() ) ;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user