diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2026-06-12 16:00:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2026-06-12 16:04:18 +0000 |
| commit | c9c448e61157cf2798f7c571e0e057273d7c3b22 (patch) | |
| tree | abfdab9b75fc711e4c6b992e6925b7ebf657653d /scripts | |
| parent | add ayu-dark (diff) | |
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
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
