diff options
Diffstat (limited to 'src/redshift.c')
-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, |