diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-24 23:37:36 +0200 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-24 23:37:36 +0200 |
commit | 65dd76a221e23a7200b33645326e90c0c02be7ed (patch) | |
tree | fd3ea9ba55dcc874b49f8fb845035a78aa44d2a7 /src/redshift.c | |
parent | Pass arguments as string to adjustment methods. (diff) | |
download | redshift-ng-65dd76a221e23a7200b33645326e90c0c02be7ed.tar.gz redshift-ng-65dd76a221e23a7200b33645326e90c0c02be7ed.tar.bz2 redshift-ng-65dd76a221e23a7200b33645326e90c0c02be7ed.tar.xz |
Use the prefix 'gamma' for gamma adjustment source files.
Diffstat (limited to 'src/redshift.c')
-rw-r--r-- | src/redshift.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/redshift.c b/src/redshift.c index 869714f..1364527 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -55,15 +55,15 @@ #endif #ifdef ENABLE_RANDR -# include "randr.h" +# include "gamma-randr.h" #endif #ifdef ENABLE_VIDMODE -# include "vidmode.h" +# include "gamma-vidmode.h" #endif #ifdef ENABLE_WINGDI -# include "w32gdi.h" +# include "gamma-w32gdi.h" #endif @@ -82,7 +82,7 @@ typedef union { /* Gamma adjustment method structs */ -static const gamma_method_spec_t gamma_methods[] = { +static const gamma_method_t gamma_methods[] = { #ifdef ENABLE_RANDR { "RANDR", @@ -273,7 +273,7 @@ main(int argc, char *argv[]) int temp_night = DEFAULT_NIGHT_TEMP; float gamma[3] = { DEFAULT_GAMMA, DEFAULT_GAMMA, DEFAULT_GAMMA }; - const gamma_method_spec_t *method = NULL; + const gamma_method_t *method = NULL; char *method_args = NULL; int transition = 1; @@ -343,7 +343,7 @@ main(int argc, char *argv[]) /* Lookup argument in gamma methods table */ for (int i = 0; gamma_methods[i].name != NULL; i++) { - const gamma_method_spec_t *m = + const gamma_method_t *m = &gamma_methods[i]; if (strcasecmp(optarg, m->name) == 0) { method = m; @@ -463,7 +463,7 @@ main(int argc, char *argv[]) } else { /* Try all methods, use the first that works. */ for (int i = 0; gamma_methods[i].name != NULL; i++) { - const gamma_method_spec_t *m = &gamma_methods[i]; + const gamma_method_t *m = &gamma_methods[i]; r = m->init(&state, method_args); if (r < 0) { fprintf(stderr, _("Initialization of %s" |