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