From 2ec1edae9794c073e703f72ffd5581e4377815c2 Mon Sep 17 00:00:00 2001 From: Rafal Harabien Date: Wed, 28 Dec 2011 13:05:24 +0000 Subject: [PATCH] [WIN32K] - Fix IntGdiSetBkColor setting wrong dirty flags. Fixes wrong background under text in Open With applications list. svn path=/trunk/; revision=54773 --- reactos/subsystems/win32/win32k/objects/dcutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/objects/dcutil.c b/reactos/subsystems/win32/win32k/objects/dcutil.c index e3c8702edf5..0ae3d53cb32 100644 --- a/reactos/subsystems/win32/win32k/objects/dcutil.c +++ b/reactos/subsystems/win32/win32k/objects/dcutil.c @@ -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);