From ec5aa19acf1b768586688dd7c82ee0d64d314b40 Mon Sep 17 00:00:00 2001 From: Jon Lund Steffensen <jonlst@gmail.com> 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-dummy.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gamma-dummy.h') diff --git a/src/gamma-dummy.h b/src/gamma-dummy.h index 64bc40d..3e58ec1 100644 --- a/src/gamma-dummy.h +++ b/src/gamma-dummy.h @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with Redshift. If not, see <http://www.gnu.org/licenses/>. - Copyright (c) 2013 Jon Lund Steffensen <jonlst@gmail.com> + Copyright (c) 2013-2014 Jon Lund Steffensen <jonlst@gmail.com> */ #ifndef REDSHIFT_GAMMA_DUMMY_H @@ -31,8 +31,8 @@ void gamma_dummy_print_help(FILE *f); int gamma_dummy_set_option(void *state, const char *key, const char *value); void gamma_dummy_restore(void *state); -int gamma_dummy_set_temperature(void *state, int temp, float brightness, - const float gamma[3]); +int gamma_dummy_set_temperature(void *state, + const color_setting_t *setting); #endif /* ! REDSHIFT_GAMMA_DUMMY_H */ -- cgit v1.2.3-70-g09d2