aboutsummaryrefslogtreecommitdiff
path: root/config.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 08:18:14 +0000
commit7ced397089fb5724fb2021bea8491f361b289366 (patch)
treedd92547a335d23968fd34c9ce2ab9d333c86f524 /config.c
parentchangelog: add new 'unreleased' section (diff)
config: gamma-correct-blending: disable by default
Diffstat (limited to 'config.c')
-rw-r--r--config.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/config.c b/config.c
index 347cc1ec..c7cf03f9 100644
--- a/config.c
+++ b/config.c
@@ -1083,17 +1083,8 @@ parse_section_main(struct context *ctx)
return true;
}
- else if (streq(key, "gamma-correct-blending")) {
- bool gamma_correct;
- if (!value_to_bool(ctx, &gamma_correct))
- return false;
-
- conf->gamma_correct =
- gamma_correct
- ? GAMMA_CORRECT_ENABLED
- : GAMMA_CORRECT_DISABLED;
- return true;
- }
+ else if (streq(key, "gamma-correct-blending"))
+ return value_to_bool(ctx, &conf->gamma_correct);
else {
LOG_CONTEXTUAL_ERR("not a valid option: %s", key);
@@ -3318,7 +3309,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,
- .gamma_correct = GAMMA_CORRECT_AUTO,
+ .gamma_correct = false,
.security = {
.osc52 = OSC52_ENABLED,
},