From dc0bcbcec3fcfd68a8ecdbc5ec1cb77ff4cac2a0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Oct 2025 22:29:36 +0530 Subject: [PATCH] reset a few more image fields --- kitty/graphics.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kitty/graphics.c b/kitty/graphics.c index 560eed64f..c1b8c5c70 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -727,6 +727,9 @@ handle_add_command(GraphicsManager *self, const GraphicsCommand *g, const uint8_ img->current_frame_shown_at = 0; img->extra_framecnt = 0; img->current_frame_index = 0; + img->animation_duration = 0; + img->animation_state = ANIMATION_STOPPED; + img->max_loops = 0; img->current_loop = 0; *is_dirty = true; set_layers_dirty(self); } else {