mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[WIN32K]
- really update Text and BackGround brushes when asked to svn path=/branches/reactos-yarotows/; revision=46966
This commit is contained in:
parent
f2a22bfe7a
commit
2f9569c2e5
2 changed files with 8 additions and 0 deletions
|
@ -297,4 +297,6 @@ DC_vSelectPalette(PDC pdc, PPALETTE ppal)
|
|||
pdc->dclevel.ppal = ppal;
|
||||
}
|
||||
|
||||
extern PBRUSH pbrDefaultBrush ;
|
||||
|
||||
#endif /* not __WIN32K_DC_H */
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue