[ros-diffs] [gvg] 19894: Limit invalidate region if required

gvg at svn.reactos.com gvg at svn.reactos.com
Sun Dec 4 23:31:49 CET 2005


Limit invalidate region if required
Modified: trunk/reactos/subsys/win32k/ntuser/painting.c
  _____  

Modified: trunk/reactos/subsys/win32k/ntuser/painting.c
--- trunk/reactos/subsys/win32k/ntuser/painting.c	2005-12-04
22:30:27 UTC (rev 19893)
+++ trunk/reactos/subsys/win32k/ntuser/painting.c	2005-12-04
22:31:43 UTC (rev 19894)
@@ -320,6 +320,19 @@

    BOOL HasPaintMessage, HasNCPaintMessage;
 
    /*
+    * If the nonclient is not to be redrawn, clip the region to the
client
+    * rect
+    */
+   if (0 != (Flags & RDW_INVALIDATE) && 0 == (Flags & RDW_FRAME))
+   {
+      HRGN hRgnClient;
+
+      hRgnClient = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect);
+      RgnType = NtGdiCombineRgn(hRgn, hRgn, hRgnClient, RGN_AND);
+      NtGdiDeleteObject(hRgnClient);
+   }
+
+   /*
     * Clip the given region with window rectangle (or region)
     */
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051204/501b4797/attachment.html


More information about the Ros-diffs mailing list