mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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).
This commit is contained in:
parent
8524e32bd5
commit
cc5dedc259
4 changed files with 23 additions and 5 deletions
2
sixel.h
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue