[ros-diffs] [fireball] 40106: - Don't try to be smarter than Windows and don't copy background/foreground color from the original DC. Spotted and confirmed by Evgeniy Boltik. As a result issues in bug 4143 are fixed, as well as other possible problems. See issue #4143 for more details.

fireball at svn.reactos.org fireball at svn.reactos.org
Thu Mar 19 22:30:47 CET 2009


Author: fireball
Date: Fri Mar 20 00:30:46 2009
New Revision: 40106

URL: http://svn.reactos.org/svn/reactos?rev=40106&view=rev
Log:
- Don't try to be smarter than Windows and don't copy background/foreground color from the original DC. Spotted and confirmed by Evgeniy Boltik. As a result issues in bug 4143 are fixed, as well as other possible problems.
See issue #4143 for more details.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/dc.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/dc.c?rev=40106&r1=40105&r2=40106&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] Fri Mar 20 00:30:46 2009
@@ -132,11 +132,7 @@
   NewDC->DcLevel.hpal    = OrigDC->DcLevel.hpal;
 
   nDc_Attr->lTextAlign      = oDc_Attr->lTextAlign;
-  nDc_Attr->ulForegroundClr = oDc_Attr->ulForegroundClr;
-  nDc_Attr->ulBackgroundClr = oDc_Attr->ulBackgroundClr;
   nDc_Attr->lBkMode         = oDc_Attr->lBkMode;
-  nDc_Attr->crForegroundClr = oDc_Attr->crForegroundClr;
-  nDc_Attr->crBackgroundClr = oDc_Attr->crBackgroundClr;
   nDc_Attr->jBkMode         = oDc_Attr->jBkMode;
   nDc_Attr->jROP2           = oDc_Attr->jROP2;
   nDc_Attr->dwLayout        = oDc_Attr->dwLayout;



More information about the Ros-diffs mailing list