mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[NtGdi]
- Fix color setting. svn path=/trunk/; revision=68876
This commit is contained in:
parent
48844bd8da
commit
8828db039a
1 changed files with 9 additions and 3 deletions
|
@ -159,9 +159,15 @@ IntGdiSetTextColor(HDC hDC,
|
||||||
}
|
}
|
||||||
pdcattr = pdc->pdcattr;
|
pdcattr = pdc->pdcattr;
|
||||||
|
|
||||||
// What about ulForegroundClr, like in gdi32?
|
crOldColor = (COLORREF) pdcattr->ulForegroundClr;
|
||||||
crOldColor = pdcattr->crForegroundClr;
|
pdcattr->ulForegroundClr = (ULONG)color;
|
||||||
pdcattr->crForegroundClr = color;
|
|
||||||
|
if (pdcattr->crForegroundClr != color)
|
||||||
|
{
|
||||||
|
pdcattr->ulDirty_ |= (DIRTY_TEXT|DIRTY_LINE|DIRTY_FILL);
|
||||||
|
pdcattr->crForegroundClr = color;
|
||||||
|
}
|
||||||
|
|
||||||
DC_vUpdateTextBrush(pdc);
|
DC_vUpdateTextBrush(pdc);
|
||||||
|
|
||||||
DC_UnlockDc(pdc);
|
DC_UnlockDc(pdc);
|
||||||
|
|
Loading…
Reference in a new issue