mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 10:42:43 +02:00
lcl: improve Tomas change to CopyPixels, fixes #0012023
git-svn-id: trunk@16394 -
This commit is contained in:
parent
5b4d18d1f6
commit
68a2e1b6d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user