lcl: improve Tomas change to CopyPixels, fixes #0012023

git-svn-id: trunk@16394 -
This commit is contained in:
paul 2008-09-03 22:23:30 +00:00
parent 5b4d18d1f6
commit 68a2e1b6d1

View File

@ -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