mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
sixel: raster: only resize image buffer if necessary
This commit is contained in:
parent
ad5b2030f0
commit
87193ff339
1 changed files with 3 additions and 1 deletions
4
sixel.c
4
sixel.c
|
|
@ -260,7 +260,9 @@ sixel_raster(struct terminal *term, uint8_t c)
|
||||||
|
|
||||||
LOG_DBG("pan=%u, pad=%u (aspect ratio = %u), size=%ux%u",
|
LOG_DBG("pan=%u, pad=%u (aspect ratio = %u), size=%ux%u",
|
||||||
pan, pad, pan / pad, ph, pv);
|
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) {
|
switch (c) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue