diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-05-01 06:34:49 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-05-01 06:54:30 +0000 |
| commit | e5a0755451b736c635be58764799ef8d7b536e8d (patch) | |
| tree | 0d084fbce2136f706369a640a46f04f058a492f2 /wayland.c | |
| parent | config: gamma-correct-blending: disable by default (diff) | |
config: tweak.surface-bit-depth now defaults to 'auto'
When set to 'auto', use 10-bit surfaces if gamma-correct blending is
enabled, and 8-bit surfaces otherwise.
Note that we may still fallback to 8-bit surfaces (without disabling
gamma-correct blending) if the compositor does not support 10-bit
surfaces.
Closes #2082
Diffstat (limited to 'wayland.c')
| -rw-r--r-- | wayland.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2640,3 +2640,10 @@ wayl_activate(struct wayland *wayl, struct wl_window *win, const char *token) xdg_activation_v1_activate(wayl->xdg_activation, token, win->surface.surf); } + +bool +wayl_do_linear_blending(const struct wayland *wayl, const struct config *conf) +{ + return conf->gamma_correct && + wayl->color_management.img_description != NULL; +} |
