diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-05 19:30:05 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-05 19:30:05 +0100 |
commit | 6e51f46781346a86d4862936ba8b7fa75ae58126 (patch) | |
tree | 91204d219102ae86d72c51f06011ffdec0fc5ed1 /src/gamma-coopgamma.c | |
parent | Cleanup and style update (avoid typedef) (diff) | |
download | redshift-ng-6e51f46781346a86d4862936ba8b7fa75ae58126.tar.gz redshift-ng-6e51f46781346a86d4862936ba8b7fa75ae58126.tar.bz2 redshift-ng-6e51f46781346a86d4862936ba8b7fa75ae58126.tar.xz |
Nicer X macros
Signed-off-by: Mattias Andrée <m@maandree.se>
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 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(); |