mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
UPD: Use built-in TPicture method to determine graphic file
This commit is contained in:
parent
0fe0f075e3
commit
bf627d8e23
1 changed files with 1 additions and 3 deletions
|
|
@ -1710,9 +1710,7 @@ begin
|
|||
fsBitmap.Free;
|
||||
end;
|
||||
{$ENDIF}
|
||||
Result:=(sExt='.bmp') or (sExt='.xpm') or (sExt='.png') or
|
||||
(sExt='.jpg') or (sExt='.jpeg') or (sExt='.ico') or (sExt='.icns') or
|
||||
(sExt='.ddw') or (sExt='.tga') or (sExt='.cur') or (sExt='.gif');
|
||||
Result:= Image.Picture.FindGraphicClassWithFileExt(sExt, False) <> nil;
|
||||
end;
|
||||
|
||||
// Adjust Image size (width and height) to sboxImage size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue