From: Stefan Csomor Date: Wed, 31 Mar 2004 19:01:02 +0000 (+0000) Subject: corrected Refresh (client coordinates) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/84f6927eca931441abec9b6d21c0e412841eaab9?ds=inline corrected Refresh (client coordinates) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index e8ad6afc61..563960faea 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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