summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/fpg_animation.pas5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/fpg_animation.pas b/src/gui/fpg_animation.pas
index 29a80960..5ff62704 100644
--- a/src/gui/fpg_animation.pas
+++ b/src/gui/fpg_animation.pas
@@ -31,8 +31,6 @@ uses
type
- { TfpgBaseImgAnim }
-
TfpgBaseImgAnim = class(TfpgWidget)
private
FFrameCount: integer;
@@ -125,7 +123,7 @@ end;
procedure TfpgBaseImgAnim.HandlePaint;
begin
- if (FImageFilename = '') or (FImage = nil) then
+ if (FImage = nil) then
Exit; //==>
Canvas.BeginDraw;
Canvas.Clear(clWindowBackground);
@@ -179,7 +177,6 @@ begin
FImage.CreateMaskFromSample(AMaskSample.X, AMaskSample.Y);
FImage.UpdateImage;
end;
- FImageFilename := 'byte'; // because handle paint check if file is set
RecalcImageWidth;
Repaint;
end;