[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:
Amine Khaldi 2015-11-06 22:07:49 +00:00
parent 4368fee2af
commit e1876fb513

View file

@ -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);
}