From 6e51f46781346a86d4862936ba8b7fa75ae58126 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Mar 2025 19:30:05 +0100 Subject: Nicer X macros 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gamma-coopgamma.c') diff --git a/src/gamma-coopgamma.c b/src/gamma-coopgamma.c index 5b18c95..387e29b 100644 --- a/src/gamma-coopgamma.c +++ b/src/gamma-coopgamma.c @@ -270,8 +270,8 @@ coopgamma_start(struct gamma_state *state, enum program_mode mode) #define X(SUFFIX, TYPE, MAX, TRUE_MAX, DEPTH)\ case DEPTH:\ crtc->rampsize = sizeof(TYPE);\ - break; - LIST_RAMPS_STOP_VALUE_TYPES + break + LIST_RAMPS_STOP_VALUE_TYPES(X, ;); #undef X default: if (info.depth > 0) @@ -325,8 +325,8 @@ coopgamma_start(struct gamma_state *state, enum program_mode mode) d /= crtc->plain_ramps.SUFFIX.blue_size;\ crtc->plain_ramps.SUFFIX.blue[j] = d * TRUE_MAX;\ }\ - break; - LIST_RAMPS_STOP_VALUE_TYPES + break + LIST_RAMPS_STOP_VALUE_TYPES(X, ;); #undef X default: abort(); @@ -529,8 +529,8 @@ coopgamma_set_temperature(struct gamma_state *state, const struct color_setting filter->ramps.u8.green_size,\ filter->ramps.u8.blue_size,\ setting);\ - break; - LIST_RAMPS_STOP_VALUE_TYPES + break + LIST_RAMPS_STOP_VALUE_TYPES(X, ;); #undef X default: abort(); -- cgit v1.2.3-70-g09d2