mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
sixel: always bump row on unhook
This commit is contained in:
parent
da76b8cbf8
commit
6f84b79810
1 changed files with 4 additions and 6 deletions
10
sixel.c
10
sixel.c
|
|
@ -45,12 +45,10 @@ sixel_unhook(struct terminal *term)
|
|||
|
||||
LOG_DBG("generating %dx%d pixman image", term->sixel.row * 6, term->sixel.max_col);
|
||||
|
||||
if (term->sixel.col >= 0) {
|
||||
if (term->sixel.col > term->sixel.max_col)
|
||||
term->sixel.max_col = term->sixel.col;
|
||||
term->sixel.row++;
|
||||
term->sixel.col = 0;
|
||||
}
|
||||
if (term->sixel.col > term->sixel.max_col)
|
||||
term->sixel.max_col = term->sixel.col;
|
||||
term->sixel.row++;
|
||||
term->sixel.col = 0;
|
||||
|
||||
struct sixel image = {
|
||||
.data = term->sixel.image,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue