diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2013-05-02 15:38:23 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2013-05-02 15:38:23 +0100 |
commit | 80f197702f9dc5da4394034656ad7c075f96ff97 (patch) | |
tree | bec5035e437c49ff982dfd2523870c49447083f3 | |
parent | b5a824a4aa6c66368f70f09482c3ac423e852f4a (diff) | |
download | fpGUI-80f197702f9dc5da4394034656ad7c075f96ff97.tar.xz |
animation: removed the checking of filename in the HandlePaint event.
If we have a FImage instance, that should be good enough.
-rw-r--r-- | src/gui/fpg_animation.pas | 5 |
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; |