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/colorramp.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/colorramp.h') diff --git a/src/colorramp.h b/src/colorramp.h index f8df478..438c563 100644 --- a/src/colorramp.h +++ b/src/colorramp.h @@ -22,10 +22,11 @@ #include +#include "redshift.h" + void colorramp_fill(uint16_t *gamma_r, uint16_t *gamma_g, uint16_t *gamma_b, - int size, int temp, float brightness, const float gamma[3]); + int size, const color_setting_t *setting); void colorramp_fill_float(float *gamma_r, float *gamma_g, float *gamma_b, - int size, int temp, float brightness, - const float gamma[3]); + int size, const color_setting_t *setting); #endif /* ! REDSHIFT_COLORRAMP_H */ -- cgit v1.2.3-70-g09d2