aboutsummaryrefslogtreecommitdiff
path: root/sixel.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-09-05 09:09:45 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-09-05 09:09:45 +0000
commitb1a4d4384571a6aa2bfc97644a6dff7066afef0b (patch)
tree94afad3aca8a5e3b46074f0c873c6af8d12a70b9 /sixel.c
parentsixel: avoid looking up color from palette for each sixel (diff)
sixel: call decsixel() directly, instead of going through sixel_put()
Diffstat (limited to 'sixel.c')
-rw-r--r--sixel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sixel.c b/sixel.c
index 3298f3f4..acb3f31b 100644
--- a/sixel.c
+++ b/sixel.c
@@ -1401,7 +1401,7 @@ decgra(struct terminal *term, uint8_t c)
}
term->sixel.state = SIXEL_DECSIXEL;
- sixel_put(term, c);
+ decsixel(term, c);
break;
}
}
@@ -1512,7 +1512,7 @@ decgci(struct terminal *term, uint8_t c)
term->sixel.color = term->sixel.palette[term->sixel.color_idx];
term->sixel.state = SIXEL_DECSIXEL;
- sixel_put(term, c);
+ decsixel(term, c);
break;
}
}