From: Giannis Adamopoulos Date: Thu, 17 Aug 2017 22:45:51 +0000 (+0000) Subject: [WIN32K] -Fix a bug with TransparentBlt when it should really ignore the alpha channe... X-Git-Tag: backups/GSoC_2017/rapps@75905~4^2~116 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=695d9ff51ee4bcf5a327502a0c3b1a62dd99a472 [WIN32K] -Fix a bug with TransparentBlt when it should really ignore the alpha channel. CORE-13040. Approved by Timo. svn path=/trunk/; revision=75601 --- diff --git a/reactos/win32ss/gdi/dib/dib32bpp.c b/reactos/win32ss/gdi/dib/dib32bpp.c index 7c1af5a121c..78124b8d49a 100644 --- a/reactos/win32ss/gdi/dib/dib32bpp.c +++ b/reactos/win32ss/gdi/dib/dib32bpp.c @@ -312,7 +312,7 @@ DIB_32BPP_TransparentBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf, SourceSurf->sizlBitmap.cx > SourceX && SourceSurf->sizlBitmap.cy > SourceY) { Source = DIB_GetSourceIndex(SourceSurf, SourceX, SourceY); - if (Source != iTransColor) + if ((0x00FFFFFF & Source) != (0x00FFFFFF & iTransColor)) { *DestBits = XLATEOBJ_iXlate(ColorTranslation, Source); }