mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
sixel: destroy all sixels when font size is decreased
If changing the font size causes the cell size to decrease, either horizontally or vertically (or both), then delete all sixels since the grid space they allocated no longer is enough to hold the images.
This commit is contained in:
parent
2c4ebec4da
commit
8f5e6e85e0
4 changed files with 37 additions and 1 deletions
1
sixel.h
1
sixel.h
|
|
@ -11,6 +11,7 @@ void sixel_put(struct terminal *term, uint8_t c);
|
|||
void sixel_unhook(struct terminal *term);
|
||||
|
||||
void sixel_destroy(struct sixel *sixel);
|
||||
void sixel_destroy_all(struct terminal *term);
|
||||
|
||||
/*
|
||||
* Deletes all sixels that are touched by the specified row(s). Used
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue