summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-05-02 15:38:23 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2013-05-02 15:38:23 +0100
commit80f197702f9dc5da4394034656ad7c075f96ff97 (patch)
treebec5035e437c49ff982dfd2523870c49447083f3 /src/gui
parentb5a824a4aa6c66368f70f09482c3ac423e852f4a (diff)
downloadfpGUI-80f197702f9dc5da4394034656ad7c075f96ff97.tar.xz
animation: removed the checking of filename in the HandlePaint event.
If we have a FImage instance, that should be good enough.
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;