mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-06 16:05:55 +02:00
ideintf/ImageListEditor: Less truncation of loaded large images.
(cherry picked from commit ac784af64b
)
This commit is contained in:
parent
05d329b0db
commit
2bd584904e
@ -612,7 +612,9 @@ var
|
||||
ItemHeight, MaxHeight: Integer;
|
||||
begin
|
||||
ItemHeight := ImageListBox.Canvas.TextHeight('Hg');
|
||||
MaxHeight := Scale96ToFont(32);
|
||||
if ImageList.ResolutionCount > 0 then // smallest image will not be truncated
|
||||
ItemHeight := Max(ItemHeight, ImageList.ResolutionByIndex[0].Height);
|
||||
MaxHeight := Scale96ToFont(32); // max height above with next sizes will be truncated
|
||||
for R in ImageList.Resolutions do
|
||||
begin
|
||||
if R.Height <= MaxHeight then
|
||||
|
Loading…
Reference in New Issue
Block a user