Allow controlling how many times an animation will loop

This commit is contained in:
Kovid Goyal
2021-02-03 20:54:43 +05:30
parent 55d0e23c38
commit b72dbc973d
3 changed files with 28 additions and 7 deletions

View File

@@ -48,6 +48,7 @@ typedef struct {
monotonic_t atime;
size_t used_storage;
bool animation_enabled, is_drawn;
uint32_t max_loops, current_loop;
monotonic_t current_frame_shown_at;
} Image;