Merge branch 'master' into sixel-performance

This commit is contained in:
Daniel Eklöf 2020-06-29 22:03:26 +02:00
commit fad5838dba
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 46 additions and 8 deletions

11
sixel.c
View file

@ -66,6 +66,17 @@ sixel_destroy(struct sixel *sixel)
sixel->data = NULL;
}
void
sixel_destroy_all(struct terminal *term)
{
tll_foreach(term->normal.sixel_images, it)
sixel_destroy(&it->item);
tll_foreach(term->alt.sixel_images, it)
sixel_destroy(&it->item);
tll_free(term->normal.sixel_images);
tll_free(term->alt.sixel_images);
}
static void
sixel_erase(struct terminal *term, struct sixel *sixel)
{