aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-05 11:14:29 +0100
committerMattias Andrée <m@maandree.se>2025-03-05 11:14:29 +0100
commit3e9d096ed58ce866968087567e01086365c67889 (patch)
tree9d462b85173d3397ee759eda4d2c87999a659d92 /src
parentUnlist redshift/pull/772: rejected (diff)
parentAdd preserve-gamma configuration option (diff)
downloadredshift-ng-3e9d096ed58ce866968087567e01086365c67889.tar.gz
redshift-ng-3e9d096ed58ce866968087567e01086365c67889.tar.bz2
redshift-ng-3e9d096ed58ce866968087567e01086365c67889.tar.xz
Merge branch 'add-preserve-gamma-config-option' of https://github.com/kenoh/redshift
Diffstat (limited to 'src')
-rw-r--r--src/options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 729140e..aadd317 100644
--- a/src/options.c
+++ b/src/options.c
@@ -572,6 +572,10 @@ parse_config_file_option(
return -1;
}
}
+ } else if (strcasecmp(key, "preserve-gamma") == 0) {
+ if (options->preserve_gamma == 1) {
+ options->preserve_gamma = !!atoi(value);
+ }
} else if (strcasecmp(key, "adjustment-method") == 0) {
if (options->method == NULL) {
options->method = find_gamma_method(