Add lcd_stop_all_gifs(void)

This commit is contained in:
xoreo
2023-11-20 14:38:04 +01:00
parent 758f1f47ca
commit a481f3b6fa
3 changed files with 31 additions and 8 deletions

View File

@@ -229,6 +229,13 @@ Call this function before drawing over the GIF.
This function should not be called on a GIF that has already been stopped (GIFs with a loop count will stop automatically).
It is possible that the handler has been assigned to a new GIF, so it would stop the new GIF instead.
#### Stopping all GIF animations
```c
void lcd_stop_all_gifs(void);
```
This function stops all the GIF animations and frees the memory allocated for the GIF.
Call this function before drawing over the GIF.
#### Checking if a GIF is still running
```c
bool lcd_gif_is_playing(lcd_gif_t* gif);