mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-18 06:46:23 -04:00
sixel: don't allow pan/pad changes after sixel data has been emitted
Changing pan/pad changes the sixel's aspect ratio. While I don't know for certain what a real VT340 would do, I suspect it would change the aspect ratio of all subsequent sixels, but not those already emitted. The way we implement sixels in foot, makes this behavior hard to implement. We currently don't resize the image properly if the aspect ratio is changed, but not the RA area. We have code that assumes all sixel lines have the same aspect ratio, etc. Since no "normal" applications change the aspect ratio in the middle of a sixel, simply disallow it, and print a warning. This also fixes a crash, when writing sixels after having modified the aspect ratio.
This commit is contained in:
parent
0ab05f4807
commit
3d2588edf8
2 changed files with 26 additions and 3 deletions
|
|
@ -62,6 +62,9 @@
|
|||
### Removed
|
||||
### Fixed
|
||||
|
||||
* Crash when changing aspect ratio of a sixel, in the middle of the
|
||||
sixel data (this is unsupported in foot, but should of course not
|
||||
result in a crash).
|
||||
* Crash when printing double-width (or longer) characters to, or near,
|
||||
the last column, when auto-wrap (private mode 7) has been disabled.
|
||||
* Dynamically sized sixel being trimmed to nothing.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue