From 1bd7d0867f65457be1363dca05aba9248d6633f7 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 1 Nov 2015 13:46:25 +0000 Subject: [PATCH] [WIN32K] Fix a nasty copypasta bug: When the DC brush was selected into a DC, it was painted with the pen color instead of the brush color. Should fix Snappy Driver installer and potentially a lot of other graphical issues. CORE-9424 #resolve svn path=/trunk/; revision=69774 --- reactos/win32ss/gdi/ntgdi/dcobjs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/win32ss/gdi/ntgdi/dcobjs.c b/reactos/win32ss/gdi/ntgdi/dcobjs.c index 76b8c3c272a..1028822a9a3 100644 --- a/reactos/win32ss/gdi/ntgdi/dcobjs.c +++ b/reactos/win32ss/gdi/ntgdi/dcobjs.c @@ -49,9 +49,8 @@ DC_vUpdateFillBrush(PDC pdc) /* Check for DC brush */ if (pdcattr->hbrush == StockObjects[DC_BRUSH]) { - /* ROS HACK, should use surf xlate */ /* Update the eboFill's solid color */ - EBRUSHOBJ_vSetSolidRGBColor(&pdc->eboFill, pdcattr->crPenClr); + EBRUSHOBJ_vSetSolidRGBColor(&pdc->eboFill, pdcattr->crBrushClr); } /* Clear flags */