mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-12 04:27:51 -05:00
sixel: assert upper pixel of last sixel maps to last image row, *or lower*
This commit is contained in:
parent
c15e75357a
commit
2388015b10
1 changed files with 2 additions and 0 deletions
2
sixel.c
2
sixel.c
|
|
@ -1084,6 +1084,8 @@ sixel_unhook(struct terminal *term)
|
|||
const int upper_pixel_last_sixel = (sixel_rows - 1) * sixel_row_height;
|
||||
const int term_rows = (upper_pixel_last_sixel + term->cell_height - 1) / term->cell_height;
|
||||
|
||||
xassert(term_rows <= image.rows);
|
||||
|
||||
row -= (image.rows - term_rows);
|
||||
|
||||
term_cursor_to(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue