diff options
| -rw-r--r-- | sixel.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -260,7 +260,9 @@ sixel_raster(struct terminal *term, uint8_t c) LOG_DBG("pan=%u, pad=%u (aspect ratio = %u), size=%ux%u", pan, pad, pan / pad, ph, pv); - resize(term, ph, pv); + + if (ph >= term->sixel.image.height && pv >= term->sixel.image.width) + resize(term, ph, pv); } switch (c) { |
