diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-04-15 14:07:47 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-04-15 14:07:47 +0000 |
| commit | 3d2588edf8a90a7ba74d75089193a52b69905a4f (patch) | |
| tree | 31e62204351876fee0406e181570e04950ed5d2b /scripts | |
| parent | sixel: also set 'alloc_height', when short-cutting a resize operation (diff) | |
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.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
