Skip to content

Commit

Permalink
The bitmap of animation is re-created only onresizing, not at each lo…
Browse files Browse the repository at this point in the history
…op.(2)
  • Loading branch information
fredvs committed Sep 23, 2020
1 parent 9a7e7c5 commit 2fe32d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imagedancer.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2fe32d4

Please sign in to comment.