From cc5dedc259c4157516915e109b77ac88b9943a55 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 10 Jun 2020 18:36:54 +0200 Subject: sixel: do not reset palette after each image A client can re-use the palette between images. Resetting the palette breaks this. Now we initialize the palette on demand, and resets it when the palette size is changed (by the client). --- sixel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sixel.h') diff --git a/sixel.h b/sixel.h index 13eff024..a10f14f2 100644 --- a/sixel.h +++ b/sixel.h @@ -4,6 +4,8 @@ #define SIXEL_MAX_COLORS 1024u +void sixel_fini(struct terminal *term); + void sixel_init(struct terminal *term); void sixel_put(struct terminal *term, uint8_t c); void sixel_unhook(struct terminal *term); -- cgit v1.3