aboutsummaryrefslogtreecommitdiff
path: root/sixel.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-29 19:53:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-29 19:53:29 +0000
commit8f5e6e85e0401a0071814c6dac7f16adb3b0b6e4 (patch)
tree68c393cc8b3e475af2e9cd22e2e0602243f0e4f1 /sixel.h
parentchangelog: slave -> client (diff)
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.
Diffstat (limited to 'sixel.h')
-rw-r--r--sixel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sixel.h b/sixel.h
index bb3eb730..fc59d6e9 100644
--- a/sixel.h
+++ b/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