aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-helper.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-22 00:36:14 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-22 00:36:14 +0200
commit904a592ff51ff40afd2a96fb492e47f3628d94a9 (patch)
tree9f360d427950eeafdf29d5d136719c621a365ca5 /src/gamma-helper.h
parentmisc awesomeness (diff)
downloadlibgamma-904a592ff51ff40afd2a96fb492e47f3628d94a9.tar.gz
libgamma-904a592ff51ff40afd2a96fb492e47f3628d94a9.tar.bz2
libgamma-904a592ff51ff40afd2a96fb492e47f3628d94a9.tar.xz
do ramp translations in the façade
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/gamma-helper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gamma-helper.h b/src/gamma-helper.h
index 00eaa85..4324b84 100644
--- a/src/gamma-helper.h
+++ b/src/gamma-helper.h
@@ -78,8 +78,8 @@ typedef int libgamma_set_ramps_any_fun(libgamma_crtc_state_t* restrict this,
* @return Zero on success, otherwise (negative) the value of an
* error identifier provided by this library
*/
-#define libgamma_translated_ramp_get(this, ramps, depth_user, depth_system, fun) \
- libgamma_translated_ramp_get_(this, (libgamma_gamma_ramps_any_t*)(ramps), depth_user, depth_system, \
+#define libgamma_translated_ramp_get(this, ramps, depth_user, depth_system, fun) \
+ libgamma_translated_ramp_get_(this, ramps, depth_user, depth_system, \
(libgamma_get_ramps_any_fun*)(fun))
@@ -98,8 +98,8 @@ typedef int libgamma_set_ramps_any_fun(libgamma_crtc_state_t* restrict this,
* @return Zero on success, otherwise (negative) the value of an
* error identifier provided by this library
*/
-#define libgamma_translated_ramp_set(this, ramps, depth_user, depth_system, fun) \
- libgamma_translated_ramp_set_(this, (libgamma_gamma_ramps_any_t)(ramps), depth_user, depth_system, \
+#define libgamma_translated_ramp_set(this, ramps, depth_user, depth_system, fun) \
+ libgamma_translated_ramp_set_(this, ramps, depth_user, depth_system, \
(libgamma_set_ramps_any_fun*)(fun))