Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions redshift.1
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ Gamma adjustment to apply at daytime
\fBgamma-night\fR = \fIR\fB:\fIG\fB:\fIB\fR
Gamma adjustment to apply at night
.TP
\fBpreserve-gamma\fR = \fI0 or 1\fR
Reset existing gamma ramps before applying new color effect. (On by default)
.TP
\fBadjustment\-method\fR = \fIname\fR
Select adjustment method. Options for the adjustment method can be
given under the configuration file heading of the same name.
Expand Down
4 changes: 4 additions & 0 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,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(
Expand Down