corrected Refresh (client coordinates)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-03-31 19:01:02 +00:00
parent d3016f3029
commit 84f6927eca

View File

@@ -1741,7 +1741,9 @@ void wxWindowMac::Refresh(bool eraseBack, const wxRect *rect)
{
RgnHandle update = NewRgn() ;
SetRectRgn( update , rect->x , rect->y , rect->x + rect->width , rect->y + rect->height ) ;
SectRgn( (RgnHandle) MacGetVisibleRegion().GetWXHRGN() , update , update ) ;
SectRgn( (RgnHandle) MacGetVisibleRegion().GetWXHRGN() , update , update ) ;
wxPoint origin = GetClientAreaOrigin() ;
OffsetRgn( update, origin.x , origin.y ) ;
HIViewSetNeedsDisplayInRegion( (ControlRef) m_macControl , update , true ) ;
}
#else