config: gamma-correct-blending: disable by default

This commit is contained in:
Daniel Eklöf 2025-05-01 08:09:08 +02:00
parent 9ff0151055
commit 7ced397089
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
8 changed files with 14 additions and 21 deletions

View file

@ -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,
},