aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-03-12 16:53:04 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-03-13 12:28:34 +0000
commitd48a1c53f59e8b7c99c18f4e4a5693ca0b10bd52 (patch)
treedda8c6febe17ac955da750a431c039da46677f33 /config.c
parentmeson: require fcft-3.3.1 (diff)
meson: require wayland-protocols >= 1.41
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/config.c b/config.c
index b141f564..6c8e147f 100644
--- a/config.c
+++ b/config.c
@@ -1112,21 +1112,11 @@ parse_section_main(struct context *ctx)
if (!value_to_bool(ctx, &gamma_correct))
return false;
-#if defined(HAVE_WP_COLOR_MANAGEMENT)
conf->gamma_correct =
gamma_correct
? GAMMA_CORRECT_ENABLED
: GAMMA_CORRECT_DISABLED;
return true;
-#else
- if (gamma_correct) {
- LOG_CONTEXTUAL_WARN(
- "ignoring; foot was built without color-management support");
- }
-
- conf->gamma_correct = GAMMA_CORRECT_DISABLED;
- return true;
-#endif
}
else {
@@ -3339,11 +3329,7 @@ config_load(struct config *conf, const char *conf_path,
.underline_thickness = {.pt = 0., .px = -1},
.strikeout_thickness = {.pt = 0., .px = -1},
.dpi_aware = false,
-#if defined(HAVE_WP_COLOR_MANAGEMENT)
.gamma_correct = GAMMA_CORRECT_AUTO,
-#else
- .gamma_correct = GAMMA_CORRECT_DISABLED,
-#endif
.security = {
.osc52 = OSC52_ENABLED,
},