From a2604f695870c8b0d53fdbe035cc5c257f8ec596 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Oct 2025 21:42:37 +0530 Subject: [PATCH] Fix animated images sometimes not auto playing or auto playing at the wrong start frame if the same image id is used for a subsequent image --- docs/changelog.rst | 2 ++ kitty/graphics.c | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index fcc82c75f..ea5d358a5 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -157,6 +157,8 @@ Detailed list of changes - macOS: Workaround for bug in macOS Tahoe that caused OS Windows that are fullscreen to crash kitty when returning from sleep on some machines (:iss:`8983`) +- Graphics: Fix animated images sometimes not auto playing or auto playing at the wrong start frame if the same image id is used for a subsequent image + 0.43.1 [2025-10-01] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/graphics.c b/kitty/graphics.c index 45ba56cb5..560eed64f 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -726,6 +726,7 @@ handle_add_command(GraphicsManager *self, const GraphicsCommand *g, const uint8_ img->is_drawn = false; img->current_frame_shown_at = 0; img->extra_framecnt = 0; + img->current_frame_index = 0; *is_dirty = true; set_layers_dirty(self); } else {