mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 17:05:45 +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;
|
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…
Add table
Add a link
Reference in a new issue