mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-06-15 14:33:46 -04:00
sixel: clamp pan/pad to 5
Pad is always (in real life) 1, and no-one should be setting pan to anything larger than 5 (the largest value possible to set with the sixel init parameters). FWIW, no-one really uses anything but 1 here either. Clamping ensures we don't blow up allocations to something huge, or worse, trigger an overflow that results in a pixel height of 0, causing a division-by-zero. Closes #2371
This commit is contained in:
parent
35f30e6451
commit
c9c448e611
2 changed files with 4 additions and 2 deletions
|
|
@ -78,8 +78,10 @@
|
|||
after a cursor move ([#2383][2383]).
|
||||
* Dracula theme updated to latest official, and light theme alucard
|
||||
added.
|
||||
* Sixels: pan/pad clamped to 5 ([#2371][2371]).
|
||||
|
||||
[2383]: https://codeberg.org/dnkl/foot/issues/2383
|
||||
[2371]: https://codeberg.org/dnkl/foot/issues/2371
|
||||
|
||||
|
||||
### Deprecated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue