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:
@@ -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
|
||||
|
Reference in New Issue
Block a user