diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-04 17:22:47 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-11 17:25:55 +0000 |
| commit | 3540031dc66f4b55941c6c2fbe476042bc3bcebf (patch) | |
| tree | 6b101ed82f42e22ca74912834fc0533c070fe19d | |
| parent | sixel: unhook: look total number of sixels (diff) | |
sixel: cell-size-changed: don’t verify sixels here
The state after this function is an intermediate state and isn’t
necessarily valid.
This sixels needs to be ‘reflowed’ to ensure a valid state. This is
something that should be done by the caller after the text grid has
been reflowed and the sixel coordinates have been re-mapped to the new
grid.
TODO: can/should we update the sixel cols/rows in sixel_reflow()
instead?
| -rw-r--r-- | sixel.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -518,7 +518,6 @@ sixel_cell_size_changed(struct terminal *term) six->rows = (six->height + term->cell_height - 1) / term->cell_height; six->cols = (six->width + term->cell_width - 1) / term->cell_width; } - verify_sixels(term); term->grid = &term->alt; tll_foreach(term->alt.sixel_images, it) { @@ -526,7 +525,6 @@ sixel_cell_size_changed(struct terminal *term) six->rows = (six->height + term->cell_height - 1) / term->cell_height; six->cols = (six->width + term->cell_width - 1) / term->cell_width; } - verify_sixels(term); term->grid = g; } |
