mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-09 09:59:15 +02:00
* Fixed alpha generation from mask on bigendian for imagelist
git-svn-id: trunk@12451 -
This commit is contained in:
parent
9eeadf2bc5
commit
d430697f03
@ -2209,8 +2209,10 @@ var
|
||||
DstLinePtr := ARawImage.Data;
|
||||
DstBytesPerLine := ARawImage.Description.BytesPerLine;
|
||||
|
||||
DstMask := not (((1 shl ADesc.AlphaPrec) - 1) shl ADesc.AlphaShift);
|
||||
DstSet := not DstMask;
|
||||
if ADesc.ByteOrder = DefaultByteOrder
|
||||
then DstSet := (not ($FFFFFFFF shl ADesc.AlphaPrec)) shl ADesc.AlphaShift
|
||||
else DstSet := (not ($FFFFFFFF shr ADesc.AlphaPrec)) shr ADesc.AlphaShift;
|
||||
DstMask := not DstSet;
|
||||
|
||||
for Y := 0 to AHeight - 1 do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user