diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-09 20:04:47 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-09 20:04:47 +0100 |
commit | 7834a05c7a44c9e6b505725584ed7508822758ac (patch) | |
tree | c293fd16efc662de222750d9454f281d716da513 | |
parent | unmark libgamma_value_of_subpixel_order as pure, unmark libgamma_value_of_connector_type as pure, fix whitespace, use goto in libgamma_value_of_{su... (diff) | |
download | libgamma-7834a05c7a44c9e6b505725584ed7508822758ac.tar.gz libgamma-7834a05c7a44c9e6b505725584ed7508822758ac.tar.bz2 libgamma-7834a05c7a44c9e6b505725584ed7508822758ac.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | get_ramps.h | 7 | ||||
-rw-r--r-- | set_ramps.h | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/get_ramps.h b/get_ramps.h index 2645feb..f3371bd 100644 --- a/get_ramps.h +++ b/get_ramps.h @@ -5,15 +5,13 @@ * libgamma_crtc_get_gamma_ramps{8,16,32,64,f,d} */ -#define CONCAT(A, B) A##B - union gamma_ramps_any ramps_; switch (this->partition->site->method) { #define X(CONST, CNAME, MDEPTH, MRAMPS)\ case CONST:\ if (!(MDEPTH)) {\ - return APPEND_RAMPS(libgamma_dummy_crtc_get_gamma_)(this, (void *)ramps);\ + return APPEND_RAMPS(libgamma_dummy_crtc_get_gamma_)(this, (void *)ramps); /* only dummy is flexible */\ } else if ((DEPTH) == (MDEPTH)) {\ return libgamma_##CNAME##_crtc_get_gamma_##MRAMPS(this, (void *)ramps);\ } else {\ @@ -25,6 +23,3 @@ LIST_AVAILABLE_METHODS(X) default: return LIBGAMMA_NO_SUCH_ADJUSTMENT_METHOD; } - - -#undef CONCAT diff --git a/set_ramps.h b/set_ramps.h index 1ef08e8..1993bd0 100644 --- a/set_ramps.h +++ b/set_ramps.h @@ -11,7 +11,7 @@ switch (this->partition->site->method) { #define X(CONST, CNAME, MDEPTH, MRAMPS)\ case CONST:\ if (!(MDEPTH)) {\ - return APPEND_RAMPS(libgamma_dummy_crtc_set_gamma_)(this, (const void *)ramps);\ + return APPEND_RAMPS(libgamma_dummy_crtc_set_gamma_)(this, (const void *)ramps); /* only dummy is flexible */\ } else if ((DEPTH) == (MDEPTH)) {\ return libgamma_##CNAME##_crtc_set_gamma_##MRAMPS(this, (const void *)ramps);\ } else {\ |