mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: return the size set NSImage in TDarwinImageUtil.getBestWithSize()
This commit is contained in:
parent
f7ca812c3c
commit
80a332c42f
2 changed files with 1 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ begin
|
|||
bestRect.size.height := size;
|
||||
bestImageRep:= srcImage.bestRepresentationForRect_context_hints( bestRect, nil, nil );
|
||||
|
||||
bestImage:= NSImage.Alloc.InitWithSize( bestImageRep.size );
|
||||
bestImage:= NSImage.Alloc.InitWithSize( bestRect.size );
|
||||
bestImage.autorelease;
|
||||
bestImage.AddRepresentation( bestImageRep );
|
||||
|
||||
|
|
|
|||
|
|
@ -507,7 +507,6 @@ begin
|
|||
_downloadImage.release;
|
||||
path:= mbExpandFileName(iCloudDriveConfig.icon.download);
|
||||
_downloadImage:= TDarwinImageUtil.getBestFromFileContentWithSize( path, 16, True );
|
||||
_downloadImage.setSize( NSMakeSize(16,16) );
|
||||
_downloadImage.retain;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue