[WIN32K]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 7 Mar 2011 21:55:17 +0000 (21:55 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 7 Mar 2011 21:55:17 +0000 (21:55 +0000)
Update all brushes in DC_vPrepareDCsForBlit. This allows us to simplify the code elsewhere.

svn path=/trunk/; revision=50997

reactos/subsystems/win32/win32k/objects/dclife.c

index 108762e..a283a8d 100644 (file)
@@ -480,6 +480,15 @@ DC_vPrepareDCsForBlit(PDC pdc1,
 {
     PDC pdcFirst, pdcSecond;
     PRECT prcFirst, prcSecond;
+
+    /* Update brushes */
+    if (pdc1->pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY))
+        DC_vUpdateFillBrush(pdc1);
+    if (pdc1->pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY))
+        DC_vUpdateLineBrush(pdc1);
+    if(pdc1->pdcattr->ulDirty_ & DIRTY_TEXT)
+        DC_vUpdateTextBrush(pdc1);
+
     /* Lock them in good order */
     if(pdc2)
     {