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-09 05:44:17 +0000 |
| commit | 984083bf19d15db5972bfda1e9d2e205f6015ddd (patch) | |
| tree | cdcd5bb79a973ef680aede6809c9151aed97f177 | |
| 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; } |
