feat: play all available bitmap slots sequentially (#49)
Resovles: #40 Changes: - Add return step state to animation functions - Add method to get head node from bitmap list - Add auto change to next bitmap depend on `is_play_sequentially`
This commit is contained in:
committed by
GitHub
parent
ea14dd8ac5
commit
2a730ef9f6
@@ -45,6 +45,11 @@ bm_t *bmlist_gohead()
|
||||
return current;
|
||||
}
|
||||
|
||||
bm_t *bmlist_head()
|
||||
{
|
||||
return head;
|
||||
}
|
||||
|
||||
bm_t *bmlist_current()
|
||||
{
|
||||
return current;
|
||||
@@ -59,6 +64,10 @@ static void list_del(bm_t *prev, bm_t *next)
|
||||
bm_t *bmlist_drop(bm_t *bm)
|
||||
{
|
||||
list_del(bm->prev, bm->next);
|
||||
if (bm == head)
|
||||
head = bm->next;
|
||||
if (bm == tail)
|
||||
tail = bm->prev;
|
||||
return bm->next;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user