sixel: calculate image height in (cell) rows

This commit is contained in:
Daniel Eklöf 2020-02-22 00:05:25 +01:00
parent 564e8909f4
commit 63140a68f5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 25 additions and 23 deletions

View file

@ -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},
};