diff --git a/lcl/intfgraphics.pas b/lcl/intfgraphics.pas index df2a3b6a21..0cc590ff88 100644 --- a/lcl/intfgraphics.pas +++ b/lcl/intfgraphics.pas @@ -3298,11 +3298,9 @@ begin begin c := ASource.Colors[x,y]; - if not DstHasMask and SrcHasMask then // copy mask to alpha channel + if not DstHasMask and SrcHasMask and (c.alpha = $FFFF) then // copy mask to alpha channel if SrcImg.Masked[x,y] then - c.alpha := 0 - else - c.alpha := $FFFF; + c.alpha := 0; Colors[x+XDst,y+YDst] := c; if AlphaMask and (c.alpha < AlphaTreshold) then