dismissed 3rd party's gif lib

This commit is contained in:
Massimo Melina 2020-05-17 18:43:03 +02:00
parent 08062c8325
commit 32b90d2e50
3 changed files with 2 additions and 7 deletions

View File

@ -4,5 +4,4 @@ Icons are generated at http://fontello.com/ . Use fontello.json for further modi
=== LIBS USED
ICS v8.58 by François PIETTE http://www.overbyte.be
GIFimage v2.2r5 by Anders Melander http://www.tolderlund.eu/delphi/
TRegExpr v0.952 by Andrey V. Sorokin http://www.regexpstudio.com/TRegExpr/TRegExpr.html

View File

@ -29,7 +29,7 @@ uses
Windows, Messages, SysUtils, Forms, Menus, Graphics, Controls, ComCtrls, Dialogs, math,
registry, ExtCtrls, shellapi, ImgList, ToolWin, StdCtrls, strutils, AppEvnts, types,
winsock, clipbrd, shlobj, activex, Buttons, FileCtrl, dateutils, iniFiles, Classes,
System.ImageList, system.Generics.Collections, GIFimage,
System.ImageList, system.Generics.Collections, Vcl.Imaging.GIFImg,
// 3rd part libs. ensure you have all of these, the same version reported in dev-notes.txt
OverbyteIcsWSocket, OverbyteIcsHttpProt, regexpr, OverbyteIcsZLibHigh, OverbyteIcsZLibObj,
// rejetto libs
@ -1956,9 +1956,6 @@ function gif2str(gif:TgifImage):ansistring;
var
stream: Tbytesstream;
begin
{ the gif component has a GDI object leak while reducing colors of
{ transparent images. this seems to be not a big problem since the
{ icon cache system was introduced, but a real fix would be nice. }
stream:=Tbytesstream.create();
gif.SaveToStream(stream);
setLength(result, stream.size);
@ -1973,7 +1970,6 @@ begin
gif:=TGIFImage.Create();
try
gif.ColorReduction:=rmQuantize;
gif.Compression:=gcLZW;
gif.Assign(bmp);
result:=gif2str(gif);
finally gif.free;

View File

@ -24,7 +24,7 @@ unit utilLib;
interface
uses
IOUtils, main, hslib, regexpr, types, windows, graphics, dialogs, registry, classes, dateUtils, gifimage,
IOUtils, main, hslib, regexpr, types, windows, graphics, dialogs, registry, classes, dateUtils, Vcl.Imaging.GIFImg,
shlobj, shellapi, activex, comobj, strutils, forms, stdctrls, controls, psAPI, menus, math,
longinputDlg, OverbyteIcsWSocket, OverbyteIcshttpProt, comCtrls, iniFiles, richedit, sysutils, classesLib{, fastmm4};