mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user