diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-06 20:18:43 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-03-11 16:32:56 +0000 |
| commit | 5a93fc30ca035658268c6bb5e6a4527ebd60b76d (patch) | |
| tree | c2e4d5111bc0d7a8014d0e494eca9d3aa1d665de | |
| parent | sixel: 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |
