aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/config.c b/config.c
index 64e45135..d0aae6a5 100644
--- a/config.c
+++ b/config.c
@@ -2809,12 +2809,19 @@ parse_section_tweak(struct context *ctx)
else if (streq(key, "surface-bit-depth")) {
_Static_assert(sizeof(conf->tweak.surface_bit_depth) == sizeof(int),
- "enum is not 32-bit");
+ "enum is not 32-bit");
+#if defined(HAVE_PIXMAN_RGBA_16)
+ return value_to_enum(
+ ctx,
+ (const char *[]){"auto", "8-bit", "10-bit", "16-bit", NULL},
+ (int *)&conf->tweak.surface_bit_depth);
+#else
return value_to_enum(
ctx,
(const char *[]){"auto", "8-bit", "10-bit", NULL},
(int *)&conf->tweak.surface_bit_depth);
+#endif
}
else {