Invlidate clip rect when scrolling

Aric Stewart aric at codeweavers.com
Thu Jan 18 10:13:46 CST 2007


as MSDN states, pixels scrolled into the clip rect ARE invalidated, but, 
as the commenter noted, NOT immediately repainted.

---
  dlls/user/painting.c |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)
-------------- next part --------------
diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c
index f169821..ea6fc65 100644
--- a/dlls/user32/painting.c
+++ b/dlls/user32/painting.c
@@ -913,6 +913,10 @@ INT WINAPI ScrollWindowEx( HWND hwnd, IN
         ShowCaret(hwndCaret);
     }
 
+    if (clipRect) {
+	    InvalidateRect(hwnd,clipRect,FALSE);
+    }
+
     if( bOwnRgn && hrgnUpdate ) DeleteObject( hrgnUpdate );
 
     return retVal;


More information about the wine-patches mailing list