Author: akhaldi
Date: Fri Nov 6 22:07:49 2015
New Revision: 69821
URL:
http://svn.reactos.org/svn/reactos?rev=69821&view=rev
Log:
[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
Modified:
trunk/reactos/win32ss/gdi/dib/dib24bpp.c
Modified: trunk/reactos/win32ss/gdi/dib/dib24bpp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/dib/dib24bpp.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/dib/dib24bpp.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/dib/dib24bpp.c [iso-8859-1] Fri Nov 6 22:07:49 2015
@@ -431,7 +431,7 @@
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);
}