wrong method call, we need to add the second update region not to replace it
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 8 Aug 2004 05:35:01 +0000 (05:35 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 8 Aug 2004 05:35:01 +0000 (05:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 0cd97d9857f8d4b4c603053e5858a16ed8da793d..12f493093a7377f9527a0c6ac8275e1b431b4fb3 100644 (file)
@@ -1638,7 +1638,7 @@ void wxWindowMac::DoMoveWindow(int x, int y, int width, int height)
             GetParent()->MacWindowToRootWindow( &parentorig.x , &parentorig.y ) ;
             parent -= GetParent()->GetClientAreaOrigin() ;
             OffsetRgn( updateOuter , -parentorig.x , -parentorig.y ) ;
-            CopyRgn( updateOuter , updateTotal ) ; 
+            UnionRgn( updateOuter , updateTotal , updateTotal ) ; 
 
             GetParent()->m_peer->SetNeedsDisplay( true , updateTotal ) ;
             DisposeRgn(updateOuter) ;