aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 09:46:35 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 09:46:35 +0000
commit00c6d4dde1346dc5f3bee394f147b8195c46a28c (patch)
tree40cf9f146b6afa4e7cf18e6ad57567334c2f9de0 /terminal.h
parentsixel: add sixel_destroy() (diff)
sixel: resize image buffer dynamically
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index bf113aa3..593e0a9f 100644
--- a/terminal.h
+++ b/terminal.h
@@ -362,7 +362,12 @@ struct terminal {
int max_col;
unsigned params[4];
uint32_t *palette;
- uint32_t *image;
+
+ struct {
+ uint32_t *data;
+ int width;
+ int height;
+ } image;
unsigned int param;
unsigned param_idx;