aboutsummaryrefslogtreecommitdiffstats
path: root/set_ramps.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--set_ramps.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/set_ramps.h b/set_ramps.h
index b396450..6f564c3 100644
--- a/set_ramps.h
+++ b/set_ramps.h
@@ -11,12 +11,12 @@ switch (this->partition->site->method) {
#define X(CONST, CNAME, MDEPTH, MRAMPS)\
case CONST:\
if (!(MDEPTH)) {\
- return APPEND_RAMPS(libgamma_dummy_crtc_set_gamma_)(this, ramps);\
+ return APPEND_RAMPS(libgamma_dummy_crtc_set_gamma_)(this, (const void *)ramps);\
} else if ((DEPTH) == (MDEPTH)) {\
- return libgamma_##CNAME##_crtc_set_gamma_##MRAMPS(this, *(libgamma_gamma_##MRAMPS##_t *)&ramps); \
+ return libgamma_##CNAME##_crtc_set_gamma_##MRAMPS(this, (const void *)ramps);\
} else {\
- ramps_.TYPE = ramps;\
- return libgamma_internal_translated_ramp_set(this, ramps_, DEPTH, MDEPTH, libgamma_crtc_set_gamma_##MRAMPS);\
+ ramps_.TYPE = *ramps;\
+ return libgamma_internal_translated_ramp_set(this, &ramps_, DEPTH, MDEPTH, libgamma_crtc_set_gamma_##MRAMPS);\
}
LIST_AVAILABLE_METHODS(X)
#undef X