mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
sixel: ugly hack to remove over-written sixel images
This commit is contained in:
parent
63140a68f5
commit
da76b8cbf8
1 changed files with 8 additions and 0 deletions
8
sixel.c
8
sixel.c
|
|
@ -66,6 +66,14 @@ sixel_unhook(struct terminal *term)
|
|||
term->sixel.image,
|
||||
IMAGE_WIDTH * sizeof(uint32_t));
|
||||
|
||||
tll_foreach(term->sixel_images, it) {
|
||||
if (it->item.pos.row == image.pos.row) {
|
||||
pixman_image_unref(it->item.pix);
|
||||
free(it->item.data);
|
||||
tll_remove(term->sixel_images, it);
|
||||
}
|
||||
}
|
||||
|
||||
tll_push_back(term->sixel_images, image);
|
||||
|
||||
term->sixel.image = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue