mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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?
This commit is contained in:
parent
cf620cf3d0
commit
984083bf19
1 changed files with 0 additions and 2 deletions
2
sixel.c
2
sixel.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue