aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-05-01 06:34:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-05-01 08:19:35 +0000
commit2a8948a3f32eaa6894457dcbf5aced57bdd91853 (patch)
tree09ad3f804551246a268dab9c4f108d9e06445312 /config.c
parentconfig: 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 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index c7cf03f9..3f7ffa28 100644
--- a/config.c
+++ b/config.c
@@ -2771,7 +2771,7 @@ parse_section_tweak(struct context *ctx)
return value_to_enum(
ctx,
- (const char *[]){"8-bit", "10-bit", NULL},
+ (const char *[]){"auto", "8-bit", "10-bit", NULL},
(int *)&conf->tweak.surface_bit_depth);
}
@@ -3419,7 +3419,7 @@ config_load(struct config *conf, const char *conf_path,
.box_drawing_solid_shades = true,
.font_monospace_warn = true,
.sixel = true,
- .surface_bit_depth = 8,
+ .surface_bit_depth = SHM_BITS_AUTO,
},
.touch = {