mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-16 05:34:00 -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
1
sixel.c
1
sixel.c
|
|
@ -56,6 +56,7 @@ sixel_unhook(struct terminal *term)
|
|||
.data = term->sixel.image,
|
||||
.width = term->sixel.max_col,
|
||||
.height = term->sixel.row * 6,
|
||||
.rows = (term->sixel.row * 6 + term->cell_height - 1) / term->cell_height,
|
||||
.pos = (struct coord){term->cursor.point.col, term->grid->offset + term->cursor.point.row},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue