From 8daf17a4e821d18f4fe58e1fa6ecf20e8c43c852 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 7 Mar 2011 21:55:17 +0000 Subject: [PATCH] [WIN32K] 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reactos/subsystems/win32/win32k/objects/dclife.c b/reactos/subsystems/win32/win32k/objects/dclife.c index 108762e1ff2..a283a8d98ff 100644 --- a/reactos/subsystems/win32/win32k/objects/dclife.c +++ b/reactos/subsystems/win32/win32k/objects/dclife.c @@ -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) {