mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
sixel: mention why we add one
This commit is contained in:
parent
7625264851
commit
a418521ced
1 changed files with 3 additions and 1 deletions
4
sixel.c
4
sixel.c
|
|
@ -309,8 +309,10 @@ decgci(struct terminal *term, uint8_t c)
|
|||
|
||||
int nparams = term->sixel.param_idx;
|
||||
|
||||
if (nparams > 0)
|
||||
if (nparams > 0) {
|
||||
/* Add one, as we use idx==0 for background color (TODO) */
|
||||
term->sixel.color_idx = min(1 + term->sixel.params[0], COLOR_COUNT - 1);
|
||||
}
|
||||
|
||||
if (nparams > 4) {
|
||||
unsigned format = term->sixel.params[1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue