aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-06 20:18:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-11 16:32:56 +0000
commit5a93fc30ca035658268c6bb5e6a4527ebd60b76d (patch)
treec2e4d5111bc0d7a8014d0e494eca9d3aa1d665de
parentsixel: resize: always round up height to a multiple of 6 (diff)
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.
-rw-r--r--sixel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sixel.c b/sixel.c
index 7cc9f63c..115d2139 100644
--- a/sixel.c
+++ b/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,