Author: tkreuzer
Date: Thu Aug 5 14:32:30 2010
New Revision: 48462
URL:
http://svn.reactos.org/svn/reactos?rev=48462&view=rev
Log:
[WIN32K]
- Copy the alpha channel as well when doing RGB<->BGR color translations.
Modified:
trunk/reactos/subsystems/win32/win32k/eng/xlate.c
Modified: trunk/reactos/subsystems/win32/win32k/eng/xlate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/en…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/eng/xlate.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/eng/xlate.c [iso-8859-1] Thu Aug 5 14:32:30
2010
@@ -64,11 +64,11 @@
{
ULONG iNewColor;
- /* Copy green */
- iNewColor = iColor & 0x00ff00;
+ /* Copy green and alpha */
+ iNewColor = iColor & 0xff00ff00;
/* Mask red and blue */
- iColor &= 0xff00ff;
+ iColor &= 0x00ff00ff;
/* Shift and copy red and blue */
iNewColor |= iColor >> 16;