mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
we don't need the 0xff
svn path=/trunk/; revision=29953
This commit is contained in:
parent
af97264c80
commit
4318124a73
1 changed files with 3 additions and 3 deletions
|
@ -1553,9 +1553,9 @@ UserDrawIconEx(
|
|||
|
||||
Alpha = ((BYTE)(Pixel >> 24) & 0xff);
|
||||
|
||||
Red = (((BYTE)(Pixel >> 0) & 0xff) * Alpha) / 0xff;
|
||||
Green = (((BYTE)(Pixel >> 8) & 0xff) * Alpha) / 0xff;
|
||||
Blue = (((BYTE)(Pixel >> 16) & 0xff) * Alpha) / 0xff;
|
||||
Red = (((BYTE)(Pixel >> 0)) * Alpha) / 0xff;
|
||||
Green = (((BYTE)(Pixel >> 8)) * Alpha) / 0xff;
|
||||
Blue = (((BYTE)(Pixel >> 16)) * Alpha) / 0xff;
|
||||
|
||||
*(DWORD *)(pBits + Count) = (DWORD)(Red | (Green << 8) | (Blue << 16) | (Alpha << 24));
|
||||
|
||||
|
|
Loading…
Reference in a new issue