mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
sixel: calculate image height in (cell) rows
This commit is contained in:
parent
564e8909f4
commit
63140a68f5
4 changed files with 25 additions and 23 deletions
|
|
@ -1601,8 +1601,7 @@ term_scroll_reverse_partial(struct terminal *term,
|
|||
|
||||
/* TODO: untested */
|
||||
|
||||
int img_rows = (it->item.height + term->cell_height - 1) / term->cell_height;
|
||||
int img_bottom_row = (it->item.pos.row + img_rows) & (term->grid->num_rows - 1);
|
||||
int img_bottom_row = (it->item.pos.row + it->item.rows) & (term->grid->num_rows - 1);
|
||||
int new_row = (term->grid->offset + r) & (term->grid->num_rows - 1);
|
||||
|
||||
if (img_bottom_row == new_row) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue