ImageList.AddImages(OtherList) optimization. See Issue #034122 patch by Ondrej

git-svn-id: trunk@58713 -
This commit is contained in:
martin 2018-08-15 10:59:19 +00:00
parent 84d4fd6a4d
commit a574baf772

View File

@ -1249,6 +1249,7 @@ var
FromR: TCustomImageListResolution; FromR: TCustomImageListResolution;
First: Boolean; First: Boolean;
Bmp: TBitmap; Bmp: TBitmap;
RawImage: TRawImage;
begin begin
if (AValue = nil) or (AValue=Self) or (AValue.Count = 0) then exit; if (AValue = nil) or (AValue=Self) or (AValue.Count = 0) then exit;
@ -1271,8 +1272,8 @@ begin
begin begin
for I := 0 to AValue.Count-1 do for I := 0 to AValue.Count-1 do
begin begin
FromR.GetBitmap(I, Bmp); FromR.GetRawImage(I, RawImage);
Replace(OldCount+I, Bmp, nil, false); FData[R].InternalReplace(OldCount+I, PRGBAQuad(RawImage.Data));
end; end;
end; end;
end; end;