diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-16 09:05:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-16 09:05:59 +0000 |
| commit | a0ab4f3f1c268db2babf621e34c8e29fa4f366b8 (patch) | |
| tree | ebda8289c42af259ece9b12443889884710adf1a /sixel.c | |
| parent | Merge branch 'xdg-activation' (diff) | |
| parent | sixel: don’t *ever* shrink image below its SRA size (diff) | |
Merge branch 'sixel-dont-shrink-below-sra-size'
Diffstat (limited to 'sixel.c')
| -rw-r--r-- | sixel.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -816,7 +816,8 @@ sixel_unhook(struct terminal *term) xassert(image.rows <= term->grid->num_rows); xassert(image.pos.row + image.rows - 1 < term->grid->num_rows); - LOG_DBG("generating %dx%d pixman image at %d-%d", + LOG_DBG("generating %s %dx%d pixman image at %d-%d", + image.opaque ? "opaque" : "transparent", image.width, image.height, image.pos.row, image.pos.row + image.rows); @@ -1195,11 +1196,10 @@ decgra(struct terminal *term, uint8_t c) ph <= term->sixel.max_height && pv <= term->sixel.max_width) { resize(term, ph, pv); - if (!term->sixel.transparent_bg) { - /* This ensures the sixel’s final image size is *at - * least* this large */ - term->sixel.max_non_empty_row_no = pv - 1; - } + + /* This ensures the sixel’s final image size is *at least* + * this large */ + term->sixel.max_non_empty_row_no = pv - 1; } term->sixel.state = SIXEL_DECSIXEL; |
