From ec5aa19acf1b768586688dd7c82ee0d64d314b40 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Sat, 27 Dec 2014 20:22:04 -0500 Subject: redshift: Simplify set_temperature by passing color_setting_t 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. --- src/redshift.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/redshift.h') diff --git a/src/redshift.h b/src/redshift.h index 7e38c42..e8be4e6 100644 --- a/src/redshift.h +++ b/src/redshift.h @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with Redshift. If not, see . - Copyright (c) 2013 Jon Lund Steffensen + Copyright (c) 2013-2014 Jon Lund Steffensen */ #ifndef REDSHIFT_REDSHIFT_H @@ -40,9 +40,8 @@ typedef void gamma_method_print_help_func(FILE *f); typedef int gamma_method_set_option_func(void *state, const char *key, const char *value); typedef void gamma_method_restore_func(void *state); -typedef int gamma_method_set_temperature_func(void *state, int temp, - float brightness, - const float gamma[3]); +typedef int gamma_method_set_temperature_func(void *state, + const color_setting_t *setting); typedef struct { char *name; -- cgit v1.2.3-70-g09d2