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-drm.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gamma-drm.h') diff --git a/src/gamma-drm.h b/src/gamma-drm.h index f4c0df5..ae97d00 100644 --- a/src/gamma-drm.h +++ b/src/gamma-drm.h @@ -25,6 +25,8 @@ #include #include +#include "redshift.h" + typedef struct { int crtc_num; @@ -52,7 +54,8 @@ void drm_print_help(FILE *f); int drm_set_option(drm_state_t *state, const char *key, const char *value); void drm_restore(drm_state_t *state); -int drm_set_temperature(drm_state_t *state, int temp, float brightness, const float gamma[3]); +int drm_set_temperature(drm_state_t *state, + const color_setting_t *setting); #endif /* ! REDSHIFT_GAMMA_DRM_H */ -- cgit v1.2.3-70-g09d2