sixel: raster: only resize image buffer if necessary

This commit is contained in:
Daniel Eklöf 2020-02-22 10:49:00 +01:00
parent ad5b2030f0
commit 87193ff339
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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) {