Author: tkreuzer
Date: Wed Apr 21 17:15:57 2010
New Revision: 46980
URL:
http://svn.reactos.org/svn/reactos?rev=46980&view=rev
Log:
[WIN32K]
Update text and background brush properly. Fixes wrong colors in radio buttons in Firefox.
Fix by Jerome Gardou.
See issue #5311 for more details.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dcobjs.c [iso-8859-1] Wed Apr 21
17:15:57 2010
@@ -110,6 +110,9 @@
{
PDC_ATTR pdcattr = pdc->pdcattr;
+ if(pdcattr->ulDirty_ & DIRTY_TEXT)
+ EBRUSHOBJ_vUpdate(&pdc->eboText, pdc->eboText.pbrush, pdc);
+
/* Update the eboText's solid color */
EBRUSHOBJ_vSetSolidBrushColor(&pdc->eboText, pdcattr->crForegroundClr);
@@ -122,6 +125,9 @@
DC_vUpdateBackgroundBrush(PDC pdc)
{
PDC_ATTR pdcattr = pdc->pdcattr;
+
+ if(pdcattr->ulDirty_ & DIRTY_BACKGROUND)
+ EBRUSHOBJ_vUpdate(&pdc->eboBackground, pdc->eboBackground.pbrush,
pdc);
/* Update the eboBackground's solid color */
EBRUSHOBJ_vSetSolidBrushColor(&pdc->eboBackground,
pdcattr->crBackgroundClr);