aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-06-11 16:40:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-06-11 16:40:52 +0000
commitdec796f52564687e9e214adfbc6073ec38b2742a (patch)
tree8f468630ced85769f7fac70686e0cdde91b80c69 /terminal.h
parentosc: 'Set Color' now updates already rendered cells in current grid (diff)
sixel: if the client has specified a size, do not change that
We used to auto-resize images to always be a multiple of 6. This is incorrect. The client may, for example, have specified a size to align the image to a cell boundary, which may not be a multiple of 6. Furthermore, in e.g. Jexer, which splits up an image into stripes, that the next image would "overwrite" the previous one. Since the next image was started on a cell row that the previous image had overflowed into.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 798307cb..fc98d7cd 100644
--- a/terminal.h
+++ b/terminal.h
@@ -416,6 +416,7 @@ struct terminal {
uint32_t *data; /* Raw image data, in ARGB */
int width; /* Image width, in pixels */
int height; /* Image height, in pixels */
+ bool autosize;
} image;
unsigned params[5]; /* Collected parmaeters, for RASTER, COLOR_SPEC */