mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 02:38:40 +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
|
begin
|
||||||
c := ASource.Colors[x,y];
|
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
|
if SrcImg.Masked[x,y] then
|
||||||
c.alpha := 0
|
c.alpha := 0;
|
||||||
else
|
|
||||||
c.alpha := $FFFF;
|
|
||||||
|
|
||||||
Colors[x+XDst,y+YDst] := c;
|
Colors[x+XDst,y+YDst] := c;
|
||||||
if AlphaMask and (c.alpha < AlphaTreshold) then
|
if AlphaMask and (c.alpha < AlphaTreshold) then
|
||||||
|
Loading…
Reference in New Issue
Block a user