Author: tkreuzer
Date: Sun Nov 1 13:46:25 2015
New Revision: 69774
URL: http://svn.reactos.org/svn/reactos?rev=69774&view=rev
Log:
[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
Modified:
trunk/reactos/win32ss/gdi/ntgdi/dcobjs.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/dcobjs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dcobjs.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dcobjs.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dcobjs.c [iso-8859-1] Sun Nov 1 13:46:25 2015
@@ -49,9 +49,8 @@
/* 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 */