]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected Refresh (client coordinates)
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 31 Mar 2004 19:01:02 +0000 (19:01 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 31 Mar 2004 19:01:02 +0000 (19:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index e8ad6afc6102dd471ad183876717242bde82cdcf..563960faea63a744c0096f2bedb011c44d05e7ac 100644 (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 ) ;
     {
         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
         HIViewSetNeedsDisplayInRegion( (ControlRef) m_macControl , update , true ) ;
     }
 #else