aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 09:46:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 09:46:54 +0000
commitb03ffa3720b3a1d4e2b0b63f317287cf3afc58cb (patch)
tree74bf0a7450771ee1159073b33217991d6201226f
parentsixel: resize image buffer dynamically (diff)
sixel: resize image buffer after receiving a "raster" command
-rw-r--r--sixel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sixel.c b/sixel.c
index 81dd980f..b3bbdb65 100644
--- a/sixel.c
+++ b/sixel.c
@@ -260,6 +260,7 @@ sixel_raster(struct terminal *term, uint8_t c)
LOG_DBG("pan=%u, pad=%u (aspect ratio = %u), size=%ux%u",
pan, pad, pan / pad, ph, pv);
+ resize(term, ph, pv);
}
switch (c) {