aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:09:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:09:08 +0000
commitb07ce56321404a34fc02635ecf4d5b63ddddf1ea (patch)
tree99c4bc03a84266729e23751f25e3739db00491af /wayland.c
parentreadme: add liberapay donation button (diff)
config: gamma-correct-blending: disable by default
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/wayland.c b/wayland.c
index 853124be..9b143508 100644
--- a/wayland.c
+++ b/wayland.c
@@ -1980,7 +1980,7 @@ wayl_win_init(struct terminal *term, const char *token)
xdg_toplevel_icon_v1_destroy(icon);
}
- if (term->conf->gamma_correct != GAMMA_CORRECT_DISABLED) {
+ if (term->conf->gamma_correct) {
if (wayl->color_management.img_description != NULL) {
xassert(wayl->color_management.manager != NULL);
@@ -1990,7 +1990,7 @@ wayl_win_init(struct terminal *term, const char *token)
wp_color_management_surface_v1_set_image_description(
win->surface.color_management, wayl->color_management.img_description,
WP_COLOR_MANAGER_V1_RENDER_INTENT_PERCEPTUAL);
- } else if (term->conf->gamma_correct == GAMMA_CORRECT_ENABLED) {
+ } else {
if (wayl->color_management.manager == NULL) {
LOG_WARN(
"gamma-corrected-blending: disabling; "
@@ -2005,8 +2005,6 @@ wayl_win_init(struct terminal *term, const char *token)
LOG_WARN(" - TF: ext_linear");
LOG_WARN(" - primaries: sRGB");
}
- } else {
- /* "auto" - don't warn */
}
}