aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-11 16:33:41 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-11 16:33:41 +0000
commit5650120e084ea70bb9de7615fb44f9258ef3d3cc (patch)
tree242f550aa0fb45fba0d725b043f1899fdb7d4b74 /terminal.h
parentmeson: SOURCE_DIR is not a valid macro in custom_target() (diff)
parentchangelog: empty pixel rows at the bottom of a sixel is now trimmed (diff)
Merge branch 'sixel-optimize'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index e4e662fb..8be5dd74 100644
--- a/terminal.h
+++ b/terminal.h
@@ -521,8 +521,9 @@ struct terminal {
} state;
struct coord pos; /* Current sixel coordinate */
+ int max_non_empty_row_no;
+ size_t row_byte_ofs; /* Byte position into image, for current row */
int color_idx; /* Current palette index */
- int max_col; /* Largest column index we've seen (aka the image width) */
uint32_t *private_palette; /* Private palette, used when private mode 1070 is enabled */
uint32_t *shared_palette; /* Shared palette, used when private mode 1070 is disabled */
uint32_t *palette; /* Points to either private_palette or shared_palette */