aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-drm.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix "Some translated strings are still in English" issueMasanori Kakura2018-08-291-0/+4
| | | | | | ENABLE_NLS is always undefined in some files and some translatable messages in these files are always displayed in English. This commit fixes the issue.
* Change preserve option to command line switchJon Lund Steffensen2017-10-131-1/+2
| | | | | | | | | | | | | | | | | 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 module structures out of headersJon Lund Steffensen2017-10-131-5/+26
|
* Allocate module data in init functionsJon Lund Steffensen2017-10-131-6/+13
|
* Move module struct definitions to separate filesJon Lund Steffensen2017-10-131-7/+19
|
* drm: Avoid using alloca()Jon Lund Steffensen2016-10-151-2/+3
|
* remove unnecessary null-checks, it is safe to pass NULL to free (per documentation)Mattias Andrée2015-05-071-2/+1
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* colorramp: Use supplied gamma ramps as initial valueJon Lund Steffensen2015-01-041-0/+10
| | | | | | | | | This changes colorramp_fill() to base the ramp calculations on the existing values in the supplied tables, instead of basing it on a pure `i/size` value computed on the fly. All gamma adjustment methods are changed to explicitly initialize the ramps to the `i/size` value before calls to colorramp_fill().
* redshift: Simplify set_temperature by passing color_setting_tJon Lund Steffensen2014-12-271-2/+2
| | | | | | | | Changes all set_temperature function in gamma adjustment methods to take a color_setting_t pointer with the color settings. Colorramp functions are similarly changed to take a color settings struct.
* Support for running Redshift without a graphical environment in Linux by using Direct Rendering ManagerMattias Andrée2014-03-221-0/+280
Signed-off-by: Mattias Andrée <maandree@operamail.com>