- Fix IntGdiSetBkColor setting wrong dirty flags. Fixes wrong background under text in Open With applications list.

svn path=/trunk/; revision=54773
This commit is contained in:
Rafal Harabien 2011-12-28 13:05:24 +00:00
parent 4cf336fa2a
commit 2ec1edae97

View file

@ -20,7 +20,7 @@ IntGdiSetBkColor(HDC hDC, COLORREF color)
oldColor = pdcattr->crBackgroundClr;
pdcattr->crBackgroundClr = color;
pdcattr->ulBackgroundClr = (ULONG)color;
pdcattr->ulDirty_ &= ~(DIRTY_BACKGROUND|DIRTY_LINE|DIRTY_FILL); // Clear Flag if set.
pdcattr->ulDirty_ |= DIRTY_BACKGROUND|DIRTY_LINE|DIRTY_FILL; // Clear Flag if set.
hBrush = pdcattr->hbrush;
DC_UnlockDc(dc);
NtGdiSelectBrush(hDC, hBrush);