- Copy the alpha channel as well when doing RGB<->BGR color translations.

svn path=/trunk/; revision=48462
This commit is contained in:
Timo Kreuzer 2010-08-05 14:32:30 +00:00
parent 589577fe34
commit 1eac149580

View file

@ -64,11 +64,11 @@ EXLATEOBJ_iXlateRGBtoBGR(PEXLATEOBJ pxlo, ULONG iColor)
{ {
ULONG iNewColor; ULONG iNewColor;
/* Copy green */ /* Copy green and alpha */
iNewColor = iColor & 0x00ff00; iNewColor = iColor & 0xff00ff00;
/* Mask red and blue */ /* Mask red and blue */
iColor &= 0xff00ff; iColor &= 0x00ff00ff;
/* Shift and copy red and blue */ /* Shift and copy red and blue */
iNewColor |= iColor >> 16; iNewColor |= iColor >> 16;