- Fix color setting.

svn path=/trunk/; revision=68876
This commit is contained in:
James Tabor 2015-08-30 23:15:55 +00:00
parent 48844bd8da
commit 8828db039a

View file

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