reset a few more image fields

This commit is contained in:
Kovid Goyal
2025-10-09 22:29:36 +05:30
parent 55f1ab3843
commit dc0bcbcec3

View File

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