mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 19:02:32 +00:00
[WIN32K]
- Copy the alpha channel as well when doing RGB<->BGR color translations. svn path=/trunk/; revision=48462
This commit is contained in:
parent
589577fe34
commit
1eac149580
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue