mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 13:49:32 +02:00
lcl: fix TCustomImageList.AddLazarusResource (#0012017)
git-svn-id: trunk@16340 -
This commit is contained in:
parent
6f910265a7
commit
e67d502aa5
@ -155,7 +155,10 @@ var
|
||||
begin
|
||||
Bmp := CreateBitmapFromLazarusResource(ResourceName);
|
||||
if MaskColor <> clNone then
|
||||
begin
|
||||
Bmp.Mask(MaskColor);
|
||||
Bmp.Transparent := True;
|
||||
end;
|
||||
Result := Add(Bmp, nil);
|
||||
Bmp.Free;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user