diff options
Diffstat (limited to 'src/gamma-coopgamma.c')
-rw-r--r-- | src/gamma-coopgamma.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gamma-coopgamma.c b/src/gamma-coopgamma.c index 0dd47c5..e108e86 100644 --- a/src/gamma-coopgamma.c +++ b/src/gamma-coopgamma.c @@ -268,7 +268,7 @@ coopgamma_start(struct gamma_state *state, enum program_mode mode) /* Get total size of the ramps */ switch (info.depth) { -#define X(SUFFIX, TYPE, MAX, TRUE_MAX, DEPTH)\ +#define X(SUFFIX, TYPE, MAX, DEPTH)\ case DEPTH:\ crtc->rampsize = sizeof(TYPE);\ break @@ -299,7 +299,7 @@ coopgamma_start(struct gamma_state *state, enum program_mode mode) #define float f #define double d switch (info.depth) { -#define X(SUFFIX, TYPE, MAX, TRUE_MAX, DEPTH)\ +#define X(SUFFIX, TYPE, MAX, DEPTH)\ case DEPTH:\ r = libcoopgamma_ramps_initialise(&crtc->filter.ramps.SUFFIX);\ if (r < 0) {\ @@ -314,17 +314,17 @@ coopgamma_start(struct gamma_state *state, enum program_mode mode) for (j = 0; j < crtc->plain_ramps.SUFFIX.red_size; j++) {\ d = j;\ d /= crtc->plain_ramps.SUFFIX.red_size;\ - crtc->plain_ramps.SUFFIX.red[j] = d * TRUE_MAX;\ + crtc->plain_ramps.SUFFIX.red[j] = d * (MAX);\ }\ for (j = 0; j < crtc->plain_ramps.SUFFIX.green_size; j++) {\ d = j;\ d /= crtc->plain_ramps.SUFFIX.green_size;\ - crtc->plain_ramps.SUFFIX.green[j] = d * TRUE_MAX;\ + crtc->plain_ramps.SUFFIX.green[j] = d * (MAX);\ }\ for (j = 0; j < crtc->plain_ramps.SUFFIX.blue_size; j++) {\ d = j;\ d /= crtc->plain_ramps.SUFFIX.blue_size;\ - crtc->plain_ramps.SUFFIX.blue[j] = d * TRUE_MAX;\ + crtc->plain_ramps.SUFFIX.blue[j] = d * (MAX);\ }\ break LIST_RAMPS_STOP_VALUE_TYPES(X, ;); @@ -495,7 +495,7 @@ coopgamma_set_temperature(struct gamma_state *state, const struct color_setting /* Otherwise, create calculate the ramps */ memcpy(filter->ramps.u8.red, state->crtcs[i].plain_ramps.u8.red, state->crtcs[i].rampsize); switch (filter->depth) { -#define X(SUFFIX, TYPE, MAX, TRUE_MAX, DEPTH)\ +#define X(SUFFIX, TYPE, MAX, DEPTH)\ case DEPTH:\ colorramp_fill_##SUFFIX((void *)(filter->ramps.u8.red),\ (void *)(filter->ramps.u8.green),\ |