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/gamma-vidmode.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gamma-vidmode.h') diff --git a/src/gamma-vidmode.h b/src/gamma-vidmode.h index 8afd8fd..05f5919 100644 --- a/src/gamma-vidmode.h +++ b/src/gamma-vidmode.h @@ -14,12 +14,14 @@ You should have received a copy of the GNU General Public License along with Redshift. If not, see . - Copyright (c) 2010 Jon Lund Steffensen + Copyright (c) 2010-2014 Jon Lund Steffensen */ #ifndef REDSHIFT_GAMMA_VIDMODE_H #define REDSHIFT_GAMMA_VIDMODE_H +#include "redshift.h" + #include #include @@ -42,8 +44,8 @@ int vidmode_set_option(vidmode_state_t *state, const char *key, const char *value); void vidmode_restore(vidmode_state_t *state); -int vidmode_set_temperature(vidmode_state_t *state, int temp, float brightness, - const float gamma[3]); +int vidmode_set_temperature(vidmode_state_t *state, + const color_setting_t *setting); #endif /* ! REDSHIFT_GAMMA_VIDMODE_H */ -- cgit v1.2.3-70-g09d2