- really update Text and BackGround brushes when asked to

svn path=/branches/reactos-yarotows/; revision=46966
This commit is contained in:
Jérôme Gardou 2010-04-20 20:44:43 +00:00
parent f2a22bfe7a
commit 2f9569c2e5
2 changed files with 8 additions and 0 deletions

View file

@ -297,4 +297,6 @@ DC_vSelectPalette(PDC pdc, PPALETTE ppal)
pdc->dclevel.ppal = ppal;
}
extern PBRUSH pbrDefaultBrush ;
#endif /* not __WIN32K_DC_H */

View 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);