Fix some animations pausing before starting

This commit is contained in:
Kovid Goyal 2023-01-03 22:39:30 +05:30
parent 779a7b7deb
commit a548e3eb4d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1252,7 +1252,7 @@ handle_animation_control_command(GraphicsManager *self, bool *is_dirty, const Gr
if (img->animation_state == ANIMATION_STOPPED) {
img->current_loop = 0;
} else {
if (old_state == ANIMATION_STOPPED) img->current_frame_shown_at = monotonic();
if (old_state == ANIMATION_STOPPED) { img->current_frame_shown_at = monotonic(); img->is_drawn = true; }
self->has_images_needing_animation = true;
global_state.check_for_active_animated_images = true;
}