mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[WIN32K] Do not truncate the result of the color translation to 8 bits in DIB_24BPP_TransparentBlt. Fixes icon drawing at 24 bpp. Brought to you by Vort. CORE-10469
svn path=/trunk/; revision=69821
This commit is contained in:
parent
4368fee2af
commit
e1876fb513
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ DIB_24BPP_TransparentBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
Source = DIB_GetSourceIndex(SourceSurf, SourceX, SourceY);
|
||||
if(Source != iTransColor)
|
||||
{
|
||||
Dest = (BYTE)XLATEOBJ_iXlate(ColorTranslation, Source) & 0xFFFFFF;
|
||||
Dest = XLATEOBJ_iXlate(ColorTranslation, Source) & 0xFFFFFF;
|
||||
*(PUSHORT)(DestBits) = Dest & 0xFFFF;
|
||||
*(DestBits + 2) = (BYTE)(Dest >> 16);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue