aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-quartz.h
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2014-12-27 20:22:04 -0500
committerJon Lund Steffensen <jonlst@gmail.com>2014-12-27 20:22:11 -0500
commitec5aa19acf1b768586688dd7c82ee0d64d314b40 (patch)
tree767475829fda9b9856532535e06dcb3ad02a5b32 /src/gamma-quartz.h
parentredshift: Add config setting to set gamma separately for day/night (diff)
downloadredshift-ng-ec5aa19acf1b768586688dd7c82ee0d64d314b40.tar.gz
redshift-ng-ec5aa19acf1b768586688dd7c82ee0d64d314b40.tar.bz2
redshift-ng-ec5aa19acf1b768586688dd7c82ee0d64d314b40.tar.xz
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.
Diffstat (limited to 'src/gamma-quartz.h')
-rw-r--r--src/gamma-quartz.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gamma-quartz.h b/src/gamma-quartz.h
index c8bfef7..b5bc213 100644
--- a/src/gamma-quartz.h
+++ b/src/gamma-quartz.h
@@ -37,8 +37,8 @@ int quartz_set_option(quartz_state_t *state, const char *key,
const char *value);
void quartz_restore(quartz_state_t *state);
-int quartz_set_temperature(quartz_state_t *state, int temp, float brightness,
- const float gamma[3]);
+int quartz_set_temperature(quartz_state_t *state,
+ const color_setting_t *setting);
#endif /* ! REDSHIFT_GAMMA_QUARTZ_H */