mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +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
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue