From 00c6d4dde1346dc5f3bee394f147b8195c46a28c Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 22 Feb 2020 10:46:35 +0100 Subject: sixel: resize image buffer dynamically --- terminal.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'terminal.h') 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; -- cgit v1.3