From 4ac4d9ee2df567e26c374493d2407a894672faeb Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen Date: Sat, 27 Dec 2014 19:38:25 -0500 Subject: redshift: Move color settings into struct for period 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. --- src/redshift.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/redshift.h') diff --git a/src/redshift.h b/src/redshift.h index 3a87877..7e38c42 100644 --- a/src/redshift.h +++ b/src/redshift.h @@ -24,6 +24,14 @@ #include +/* Color setting */ +typedef struct { + int temperature; + float gamma[3]; + float brightness; +} color_setting_t; + + /* Gamma adjustment method */ typedef int gamma_method_init_func(void *state); typedef int gamma_method_start_func(void *state); -- cgit v1.2.3-70-g09d2