aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-05Merge redshift.h into common.hMattias Andrée1-153/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
2017-10-13Change preserve option to command line switchJon Lund Steffensen1-2/+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.
2017-10-13Move options handling to separate fileJon Lund Steffensen1-0/+32
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.
2017-10-13Allocate module data in init functionsJon Lund Steffensen1-14/+18
2017-08-17Change location providers to allow updatesJon Lund Steffensen1-3/+6
Change location provider implementations so it is possible for location providers to dynamically update the location. This commit adds the interfaces and infrastructure in redshift.c but none of the location provides are changed to become dynamic.
2016-12-19Add coopgamma backendMattias Andrée1-1/+10
Signed-off-by: Mattias Andrée <maandree@kth.se>
2015-01-04Add location_t type with lat/lon fieldsJon Lund Steffensen1-3/+7
2014-12-28redshift: Move period_t to headerJon Lund Steffensen1-0/+9
2014-12-27redshift: Simplify set_temperature by passing color_setting_tJon Lund Steffensen1-4/+3
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.
2014-12-27redshift: Move color settings into struct for periodJon Lund Steffensen1-0/+8
Move color settings (temperature, gamma and brightness) into a struct for each period (day, night). Change the interpolation function to interpolate all values between these structs.
2014-03-23Fix #22: remove initial underscore from include guardsJon Lund Steffensen1-3/+3
2013-12-09Only start "dummy" gamma method if explicitly requestedJon Lund Steffensen1-1/+4
2013-12-09Constify gamma parameter to set_temperature() methodsJon Lund Steffensen1-1/+1
2011-04-21Allow brightness to be adjusted (between 10% and 100%, the latter being the default).Jon Lund Steffensen1-0/+1
2010-05-27Split init function of methods and providers into init and start.Jon Lund Steffensen1-2/+31
The set_option function can be called to set options between init and start.
2010-05-27Let gamma methods and location providers print help on option parameters.Jon Lund Steffensen1-0/+7
2010-05-25Provide fundament for more advanced location providers.Jon Lund Steffensen1-0/+15
2010-05-24Use the prefix 'gamma' for gamma adjustment source files.Jon Lund Steffensen1-1/+1
2010-05-24Pass arguments as string to adjustment methods.Jon Lund Steffensen1-1/+1
2010-05-24Move gamma method spec structs to redshift.hJon Lund Steffensen1-13/+15
2010-05-24Use gamma_method_spec_t struct to control and iterate through differentJon Lund Steffensen1-1/+1
gamma adjustment methods.
2010-05-06systemtime.c: Portably read current time on posix and windows.Jon Lund Steffensen1-7/+16
w32gdi.c: Implements gamma ramp method for Windows GDI API. Use double as a cross platform time representation. Add WinGDI as a selectable method (currently limitied to minimum 4500K). Fix a bug where redshift would crash if RANDR failed and VidMode wasn't compiled in.
2010-02-02Add gettext support in redshift.Jon Lund Steffensen1-1/+1
2009-12-23Move source and headers to src dir.Jon Lund Steffensen1-0/+0
2009-12-23Move RandR code to separate file.Jon Lund Steffensen1-6/+8
2009-11-04Add COPYING file (GPLv3).Jon Lund Steffensen1-1/+18
Add copyright and license in file headers.
2009-11-04Allow individual adjustment of each gamma channel.Jon Lund Steffensen1-1/+1