config: tweak.surface-bit-depth: add 16-bit

This adds support for 16-bit (integer) surfaces. The corresponding
pixman type (PIXMAN_a16b16g16r16) was added in 0.46.0.

If the new 16-bit type is requested, but not supported by the
compositor, fallback to 16f-bit, and if that fails, 10-bit (and
finally 8-bit).
This commit is contained in:
Daniel Eklöf 2025-05-01 11:55:21 +02:00
parent 429a922723
commit 5dbf5ea89d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
8 changed files with 60 additions and 16 deletions

View file

@ -87,9 +87,9 @@
- solarized
* `regex-copy`/`show-urls-copy` will copy and paste the selected text if the hint
is completed with an uppercase character ([#1975][1975]).
* `16f-bit` to `tweak.surface-bit-depth`. Makes foot use 16-bit
floating point image buffers. They provide the necessary color
precision required by `gamma-correct-blending=yes`.
* `16-bit` and `16f-bit` to `tweak.surface-bit-depth`. Makes foot use
16-bit (integer/floating point) image buffers. They provide the
necessary color precision required by `gamma-correct-blending=yes`.
[2025]: https://codeberg.org/dnkl/foot/issues/2025
[1975]: https://codeberg.org/dnkl/foot/issues/1975