diff options
author | Mattias Andrée <maandree@kth.se> | 2021-03-05 18:23:13 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-03-05 18:33:49 +0100 |
commit | f52513b09580c1533e6c48a4162d3d5f61f3b081 (patch) | |
tree | 141d0974a777f4ec5b51daed9879a2cb0d781505 /set_ramps.h | |
parent | Split source files, merge public header files, eliminite use gpp, rewrite makefile (diff) | |
download | libgamma-f52513b09580c1533e6c48a4162d3d5f61f3b081.tar.gz libgamma-f52513b09580c1533e6c48a4162d3d5f61f3b081.tar.bz2 libgamma-f52513b09580c1533e6c48a4162d3d5f61f3b081.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | set_ramps.h | 8 |
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 |