[ros-diffs] [tkreuzer] 50997: [WIN32K] Update all brushes in DC_vPrepareDCsForBlit. This allows us to simplify the code elsewhere.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon Mar 7 21:55:17 UTC 2011


Author: tkreuzer
Date: Mon Mar  7 21:55:17 2011
New Revision: 50997

URL: http://svn.reactos.org/svn/reactos?rev=50997&view=rev
Log:
[WIN32K]
Update all brushes in DC_vPrepareDCsForBlit. This allows us to simplify the code elsewhere.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/dclife.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/dclife.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/dclife.c?rev=50997&r1=50996&r2=50997&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dclife.c [iso-8859-1] Mon Mar  7 21:55:17 2011
@@ -480,6 +480,15 @@
 {
     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)
     {




More information about the Ros-diffs mailing list