aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'add-preserve-gamma-config-option' of https://github.com/kenoh/redshiftMattias Andrée2025-03-051-0/+4
|\
| * Add preserve-gamma configuration optionMatúš Honěk2019-04-291-0/+4
| | | | | | | | | | To be able to convey the same information the '-P' command line option currently does, but using configuration file.
* | Cleanup, fix/update sv.po, begin use of plain make and renaming project to redshift-ngMattias Andrée2025-03-041-3/+0
|/ | | | Signed-off-by: Mattias Andrée <m@maandree.se>
* options: Split parse functionsJon Lund Steffensen2017-10-191-276/+277
|
* Change preserve option to command line switchJon Lund Steffensen2017-10-131-1/+7
| | | | | | | | | | | | | | | | | Changes each adjustment method to take a preserve parameter when setting the temperature instead of parsing the preserve option from the command line/configuration file. This helps resolve the issues around #513: - This allows the preserve option to be implemented as a command-line switch (-P). This switch _disables_ the preservation of existing gamma ramps. Having a command-line switch makes it easier to use directly with manual or one-shot mode. - The preserve options is on by default, so continual mode as well as other modes will default to applying the color adjustment on top of the current gamma ramps. - Preserve is always disabled in reset mode so resetting works as expected again.
* Move options handling to separate fileJon Lund Steffensen2017-10-131-0/+672
Create options.c which contains functions for initializing and parsing options from the command line and the configuration file. Program options that were previously local variables in main() are moved to the options_t struct.