mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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;
|
||||
|
||||
// What about ulForegroundClr, like in gdi32?
|
||||
crOldColor = pdcattr->crForegroundClr;
|
||||
pdcattr->crForegroundClr = color;
|
||||
crOldColor = (COLORREF) pdcattr->ulForegroundClr;
|
||||
pdcattr->ulForegroundClr = (ULONG)color;
|
||||
|
||||
if (pdcattr->crForegroundClr != color)
|
||||
{
|
||||
pdcattr->ulDirty_ |= (DIRTY_TEXT|DIRTY_LINE|DIRTY_FILL);
|
||||
pdcattr->crForegroundClr = color;
|
||||
}
|
||||
|
||||
DC_vUpdateTextBrush(pdc);
|
||||
|
||||
DC_UnlockDc(pdc);
|
||||
|
|
Loading…
Reference in a new issue