term: gamma-correct-blending=yes uses 16-bit integer surfaces by default

This commit is contained in:
Daniel Eklöf 2025-05-01 11:56:34 +02:00
parent 5dbf5ea89d
commit 763ea2eb4a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 3 deletions

View file

@ -101,8 +101,8 @@
* OSC-11 without an alpha value will now restore the configured * OSC-11 without an alpha value will now restore the configured
(i.e. from `foot.ini`) alpha, rather than keeping whatever the (i.e. from `foot.ini`) alpha, rather than keeping whatever the
current alpha value is, unchanged. current alpha value is, unchanged.
* `gamma-correct-blending=yes` now defaults to `16f-bit` image * `gamma-correct-blending=yes` now defaults to `16-bit` image buffers,
buffers, instead of `10-bit`. instead of `10-bit`.
### Deprecated ### Deprecated

View file

@ -1259,7 +1259,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
const enum shm_bit_depth desired_bit_depth = const enum shm_bit_depth desired_bit_depth =
conf->tweak.surface_bit_depth == SHM_BITS_AUTO conf->tweak.surface_bit_depth == SHM_BITS_AUTO
? wayl_do_linear_blending(wayl, conf) ? SHM_BITS_16F : SHM_BITS_8 ? wayl_do_linear_blending(wayl, conf) ? SHM_BITS_16 : SHM_BITS_8
: conf->tweak.surface_bit_depth; : conf->tweak.surface_bit_depth;
const struct color_theme *theme = NULL; const struct color_theme *theme = NULL;