From 8f5e6e85e0401a0071814c6dac7f16adb3b0b6e4 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 29 Jun 2020 21:53:29 +0200 Subject: 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. --- sixel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sixel.h') 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 -- cgit v1.3