mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
sixel: add: simplify check for resize needed
Since the image height is always a multiple of 6, there’s no need to round up the image height.
This commit is contained in:
parent
e94f108572
commit
5a93fc30ca
1 changed files with 1 additions and 1 deletions
2
sixel.c
2
sixel.c
|
|
@ -906,7 +906,7 @@ sixel_add(struct terminal *term, uint32_t color, uint8_t sixel)
|
|||
}
|
||||
|
||||
if (term->sixel.pos.col >= term->sixel.image.width ||
|
||||
term->sixel.pos.row + 5 >= (term->sixel.image.height + 6 - 1) / 6 * 6)
|
||||
term->sixel.pos.row >= term->sixel.image.height)
|
||||
{
|
||||
int width = max(
|
||||
term->sixel.image.width,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue