sixel: ugly hack to remove over-written sixel images

This commit is contained in:
Daniel Eklöf 2020-02-22 00:10:42 +01:00
parent 63140a68f5
commit da76b8cbf8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;