sixel: remove ‘max_col’

The image width *is* the maximum number of columns we’ve seen.
This commit is contained in:
Daniel Eklöf 2021-03-07 11:49:15 +01:00
parent 1c9c1aafc8
commit 4b0e9a6bee
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 13 deletions

View file

@ -523,7 +523,6 @@ struct terminal {
struct coord pos; /* Current sixel coordinate */
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 */