mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 22:59:27 +02:00
ImageList.AddImages(OtherList) optimization. See Issue #034122 patch by Ondrej
git-svn-id: trunk@58713 -
This commit is contained in:
parent
84d4fd6a4d
commit
a574baf772
@ -1249,6 +1249,7 @@ var
|
||||
FromR: TCustomImageListResolution;
|
||||
First: Boolean;
|
||||
Bmp: TBitmap;
|
||||
RawImage: TRawImage;
|
||||
begin
|
||||
if (AValue = nil) or (AValue=Self) or (AValue.Count = 0) then exit;
|
||||
|
||||
@ -1271,8 +1272,8 @@ begin
|
||||
begin
|
||||
for I := 0 to AValue.Count-1 do
|
||||
begin
|
||||
FromR.GetBitmap(I, Bmp);
|
||||
Replace(OldCount+I, Bmp, nil, false);
|
||||
FromR.GetRawImage(I, RawImage);
|
||||
FData[R].InternalReplace(OldCount+I, PRGBAQuad(RawImage.Data));
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user