From 2fe32d4444b2fbe1a7db42611470caf1a4f354f9 Mon Sep 17 00:00:00 2001 From: fredvs Date: Wed, 23 Sep 2020 20:07:58 +0200 Subject: [PATCH] The bitmap of animation is re-created only onresizing, not at each loop.(2) --- src/imagedancer.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imagedancer.pas b/src/imagedancer.pas index 4bf8ca5..717129e 100644 --- a/src/imagedancer.pas +++ b/src/imagedancer.pas @@ -173,7 +173,7 @@ procedure timagedancerfo.onpaint_imagedancerfo(const Sender: twidget; isbuzy := true; -if (Bitmap.width <> Sender.bounds_cx) or (Bitmap.width <> Sender.bounds_cx) +if (Bitmap.width <> Sender.bounds_cx) or (Bitmap.height <> Sender.bounds_cy) then begin bitmap.free;