diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-06 15:07:03 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-12-15 20:31:51 -0500 |
commit | 980a993c9823235677ce700d23e85fa721cbbea7 (patch) | |
tree | 044761a4ad1fed77933cb4aa3abdd8079931735f /src/redshift.c | |
parent | colorramp: Add float-typed colorramp_fill() equivalent (diff) | |
download | redshift-ng-980a993c9823235677ce700d23e85fa721cbbea7.tar.gz redshift-ng-980a993c9823235677ce700d23e85fa721cbbea7.tar.bz2 redshift-ng-980a993c9823235677ce700d23e85fa721cbbea7.tar.xz |
Add Quartz (OSX) gamma adjustment method
Diffstat (limited to '')
-rw-r--r-- | src/redshift.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/redshift.c b/src/redshift.c index 0c9a6bd..8ff40f0 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -65,6 +65,10 @@ # include "gamma-vidmode.h" #endif +#ifdef ENABLE_QUARTZ +# include "gamma-quartz.h" +#endif + #ifdef ENABLE_WINGDI # include "gamma-w32gdi.h" #endif @@ -92,6 +96,9 @@ typedef union { #ifdef ENABLE_VIDMODE vidmode_state_t vidmode; #endif +#ifdef ENABLE_QUARTZ + quartz_state_t quartz; +#endif #ifdef ENABLE_WINGDI w32gdi_state_t w32gdi; #endif @@ -136,6 +143,18 @@ static const gamma_method_t gamma_methods[] = { (gamma_method_set_temperature_func *)vidmode_set_temperature }, #endif +#ifdef ENABLE_QUARTZ + { + "quartz", 1, + (gamma_method_init_func *)quartz_init, + (gamma_method_start_func *)quartz_start, + (gamma_method_free_func *)quartz_free, + (gamma_method_print_help_func *)quartz_print_help, + (gamma_method_set_option_func *)quartz_set_option, + (gamma_method_restore_func *)quartz_restore, + (gamma_method_set_temperature_func *)quartz_set_temperature + }, +#endif #ifdef ENABLE_WINGDI { "wingdi", 1, |