Author: fireball
Date: Sat Sep 18 13:14:21 2010
New Revision: 48803
URL:
http://svn.reactos.org/svn/reactos?rev=48803&view=rev
Log:
- Merge 48462 by tkreuzer: "Copy the alpha channel as well when doing RGB<->BGR
color translations."
Modified:
branches/arwinss/reactos/subsystems/win32/win32k/eng/engxlate.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/eng/engxlate.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win3…
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/eng/engxlate.c [iso-8859-1]
(original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/eng/engxlate.c [iso-8859-1] Sat Sep
18 13:14:21 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;