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

This commit is contained in:
Kovid Goyal
2025-10-09 21:42:37 +05:30
parent b543956638
commit a2604f6958
2 changed files with 3 additions and 0 deletions

View File

@@ -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 {