aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--get_ramps.h7
-rw-r--r--set_ramps.h2
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 {\