* Fixed alpha generation from mask on bigendian for imagelist

git-svn-id: trunk@12451 -
This commit is contained in:
marc 2007-10-14 00:22:38 +00:00
parent 9eeadf2bc5
commit d430697f03

View File

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