sixel: limit image size to the one specified in the raster attrs

If a sixel has set an explicit width/height, in its raster attributes,
do *not* allow the image to extend beyond this.

Before this patch, we dynamically resized images if the sixel encoder
emitted sixel data beyond the previously set width/height.

Now, we ignore writes outside the configured size.
This commit is contained in:
Daniel Eklöf 2024-03-04 16:33:58 +01:00
parent f17b989650
commit f7bdc4c5b4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 18 additions and 1 deletions

View file

@ -107,6 +107,9 @@
determining whether a key combination produces text or not.
* CSI-t queries now report pixel values **unscaled**, instead of
**scaled** ([#1643][1643]).
* Sixel "level 2" images (raster attributes set) are no longer
extended beyond the width/height specified in the raster attributes
([#chafa-192][chafa-192]).
[1526]: https://codeberg.org/dnkl/foot/issues/1526
[1528]: https://codeberg.org/dnkl/foot/issues/1528
@ -114,6 +117,7 @@
[kitty-6913]: https://github.com/kovidgoyal/kitty/issues/6913
[1584]: https://codeberg.org/dnkl/foot/issues/1584
[1643]: https://codeberg.org/dnkl/foot/issues/1643
[chafa-192]: https://github.com/hpjansson/chafa/issues/192
### Deprecated