From 86433cea917715559d496ad0561d6b10bc89d7e5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 23 Mar 2025 13:21:19 +0100 Subject: Rewrite gamma-randr.c and gamma-vidmode.c to use libgamma MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-coopgamma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gamma-coopgamma.c') diff --git a/src/gamma-coopgamma.c b/src/gamma-coopgamma.c index 5343e08..7a33746 100644 --- a/src/gamma-coopgamma.c +++ b/src/gamma-coopgamma.c @@ -278,7 +278,7 @@ coopgamma_start(struct gamma_state *state) /* Get total size of the ramps */ switch (info.depth) { -#define X(SUFFIX, TYPE, MAX, DEPTH)\ +#define X(SUFFIX, RAMPS, TYPE, MAX, DEPTH)\ case DEPTH:\ crtc->rampsize = sizeof(TYPE);\ break @@ -310,7 +310,7 @@ coopgamma_start(struct gamma_state *state) #define float f #define double d switch (info.depth) { -#define X(SUFFIX, TYPE, MAX, DEPTH)\ +#define X(SUFFIX, RAMPS, TYPE, MAX, DEPTH)\ case DEPTH:\ r = libcoopgamma_ramps_initialise(&crtc->filter.ramps.SUFFIX);\ if (r < 0) {\ @@ -505,7 +505,7 @@ coopgamma_apply(struct gamma_state *state, const struct colour_setting *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, DEPTH)\ +#define X(SUFFIX, RAMPS, TYPE, MAX, DEPTH)\ case DEPTH:\ fill_ramps_##SUFFIX((void *)(filter->ramps.u8.red),\ (void *)(filter->ramps.u8.green),\ -- cgit v1.2.3-70-g09d2