[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Tue, 20 Apr 2010 20:44:43 +0000 (20:44 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Tue, 20 Apr 2010 20:44:43 +0000 (20:44 +0000)
  - really update Text and BackGround brushes when asked to

svn path=/branches/reactos-yarotows/; revision=46966

subsystems/win32/win32k/include/dc.h
subsystems/win32/win32k/objects/dcobjs.c

index 6e5f973..d78e200 100644 (file)
@@ -297,4 +297,6 @@ DC_vSelectPalette(PDC pdc, PPALETTE ppal)
     pdc->dclevel.ppal = ppal;
 }
 
+extern PBRUSH pbrDefaultBrush ;
+
 #endif /* not __WIN32K_DC_H */
index 498cc85..9fccfec 100644 (file)
@@ -110,6 +110,9 @@ DC_vUpdateTextBrush(PDC pdc)
 {
     PDC_ATTR pdcattr = pdc->pdcattr;
 
+    if(pdcattr->ulDirty_ & DIRTY_TEXT)
+        EBRUSHOBJ_vUpdate(&pdc->eboText, pbrDefaultBrush, pdc);
+
     /* Update the eboText's solid color */
     EBRUSHOBJ_vSetSolidBrushColor(&pdc->eboText, pdcattr->crForegroundClr);
 
@@ -123,6 +126,9 @@ DC_vUpdateBackgroundBrush(PDC pdc)
 {
     PDC_ATTR pdcattr = pdc->pdcattr;
 
+    if(pdcattr->ulDirty_ & DIRTY_BACKGROUND)
+        EBRUSHOBJ_vUpdate(&pdc->eboBackground, pbrDefaultBrush, pdc);
+
     /* Update the eboBackground's solid color */
     EBRUSHOBJ_vSetSolidBrushColor(&pdc->eboBackground, pdcattr->crBackgroundClr);