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-w32gdi.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gamma-w32gdi.h') diff --git a/src/gamma-w32gdi.h b/src/gamma-w32gdi.h index e81f4c5..1f985c8 100644 --- a/src/gamma-w32gdi.h +++ b/src/gamma-w32gdi.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) 2010 Jon Lund Steffensen + Copyright (c) 2010-2014 Jon Lund Steffensen */ #ifndef REDSHIFT_GAMMA_W32GDI_H @@ -23,6 +23,8 @@ #include #include +#include "redshift.h" + typedef struct { WORD *saved_ramps; @@ -38,8 +40,8 @@ int w32gdi_set_option(w32gdi_state_t *state, const char *key, const char *value); void w32gdi_restore(w32gdi_state_t *state); -int w32gdi_set_temperature(w32gdi_state_t *state, int temp, float brightness, - const float gamma[3]); +int w32gdi_set_temperature(w32gdi_state_t *state, + const color_setting_t *color); #endif /* ! REDSHIFT_GAMMA_W32GDI_H */ -- cgit v1.2.3-70-g09d2