From 1eac149580b1af12f784bf6100f85dd69eb03822 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 5 Aug 2010 14:32:30 +0000 Subject: [PATCH] [WIN32K] - Copy the alpha channel as well when doing RGB<->BGR color translations. svn path=/trunk/; revision=48462 --- reactos/subsystems/win32/win32k/eng/xlate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/subsystems/win32/win32k/eng/xlate.c b/reactos/subsystems/win32/win32k/eng/xlate.c index 27d06846fe8..77f2a213ae1 100644 --- a/reactos/subsystems/win32/win32k/eng/xlate.c +++ b/reactos/subsystems/win32/win32k/eng/xlate.c @@ -64,11 +64,11 @@ EXLATEOBJ_iXlateRGBtoBGR(PEXLATEOBJ pxlo, ULONG iColor) { 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; -- 2.17.1