Skip to content

Commit 92f3f8f

Browse files
committed
Modify to use VCL GIF image unit
Now use GIFImg unit (from VCL) instead of 3rd party GIFImage unit. FmSplash now uses class helper to load GIF from resources.
1 parent daf0198 commit 92f3f8f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Src/FmSplash.pas

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ implementation
6666

6767
uses
6868
// Delphi
69-
Windows, Graphics,
70-
// 3rd party
71-
GIFImage,
69+
Windows, Graphics, GIFImg,
7270
// Project
73-
UAppInfo, UColours, UStructs, UWindowSettings;
71+
UAppInfo, UClassHelpers, UColours, UStructs, UWindowSettings;
7472

7573

7674
{$R *.dfm}
@@ -149,7 +147,7 @@ procedure TSplashForm.pbMainPaint(Sender: TObject);
149147
// Load and display splash screen image
150148
GIF := TGIFImage.Create;
151149
try
152-
GIF.LoadFromResourceName(HInstance, 'SPLASHIMAGE');
150+
GIF.LoadFromResource(HInstance, 'SPLASHIMAGE', RT_RCDATA);
153151
Canvas.Draw(0, 0, GIF);
154152
finally
155153
GIF.Free;

Src/UGIFImageList.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ implementation
7272

7373

7474
uses
75-
// 3rd party
76-
GIFImage,
75+
// Delphi
76+
GIFImg, UClassHelpers,
7777
// Project
7878
UComparers;
7979

0 commit comments

Comments
 (0)