diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-21 23:19:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-21 23:19:38 +0000 |
| commit | 6f84b79810102708ec42a371e7a4a3446c741d03 (patch) | |
| tree | e9a9e65c100b09bcc8c45840805aff4a24df0e92 | |
| parent | sixel: ugly hack to remove over-written sixel images (diff) | |
sixel: always bump row on unhook
| -rw-r--r-- | sixel.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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, |
