diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-05-22 00:36:14 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-05-22 00:36:14 +0200 |
commit | 904a592ff51ff40afd2a96fb492e47f3628d94a9 (patch) | |
tree | 9f360d427950eeafdf29d5d136719c621a365ca5 /src/gamma-x-randr.c | |
parent | misc awesomeness (diff) | |
download | libgamma-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-x-randr.c | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/src/gamma-x-randr.c b/src/gamma-x-randr.c index 67e2a3b..99a5a21 100644 --- a/src/gamma-x-randr.c +++ b/src/gamma-x-randr.c @@ -22,7 +22,6 @@ #include "gamma-x-randr.h" #include "libgamma-error.h" -#include "gamma-helper.h" #include <stdlib.h> #include <errno.h> @@ -252,135 +251,3 @@ int libgamma_x_randr_crtc_set_gamma_ramps(libgamma_crtc_state_t* restrict this, /* TODO */ } - - -/** - * Get current the gamma ramps for a CRTC, 32-bit gamma-depth version - * - * @param this The CRTC state - * @param ramps The gamma ramps to fill with the current values - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_x_randr_crtc_get_gamma_ramps32(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps32_t* restrict ramps) -{ - return libgamma_translated_ramp_get(this, ramps, 32, 16, - libgamma_x_randr_crtc_get_gamma_ramps); -} - - -/** - * Set the gamma ramps for a CRTC, 32-bit gamma-depth version - * - * @param this The CRTC state - * @param ramps The gamma ramps to apply - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_x_randr_crtc_set_gamma_ramps32(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps32_t ramps) -{ - return libgamma_translated_ramp_set(this, ramps, 32, 16, - libgamma_x_randr_crtc_set_gamma_ramps); -} - - - -/** - * Get current the gamma ramps for a CRTC, 64-bit gamma-depth version - * - * @param this The CRTC state - * @param ramps The gamma ramps to fill with the current values - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_x_randr_crtc_get_gamma_ramps64(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps64_t* restrict ramps) -{ - return libgamma_translated_ramp_get(this, ramps, 64, 16, - libgamma_x_randr_crtc_get_gamma_ramps); -} - - -/** - * Set the gamma ramps for a CRTC, 64-bit gamma-depth version - * - * @param this The CRTC state - * @param ramps The gamma ramps to apply - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_x_randr_crtc_set_gamma_ramps64(libgamma_crtc_state_t* restrict this, - libgamma_gamma_ramps64_t ramps) -{ - return libgamma_translated_ramp_set(this, ramps, 64, 16, - libgamma_x_randr_crtc_set_gamma_ramps); -} - - - -/** - * Get current the gamma ramps for a CRTC, `float` version - * - * @param this The CRTC state - * @param ramps The gamma ramps to fill with the current values - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_x_randr_crtc_get_gamma_rampsf(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsf_t* restrict ramps) -{ - return libgamma_translated_ramp_get(this, ramps, -1, 16, - libgamma_x_randr_crtc_get_gamma_ramps); -} - - -/** - * Set the gamma ramps for a CRTC, `float` version - * - * @param this The CRTC state - * @param ramps The gamma ramps to apply - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_x_randr_crtc_set_gamma_rampsf(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsf_t ramps) -{ - return libgamma_translated_ramp_set(this, ramps, -1, 16, - libgamma_x_randr_crtc_set_gamma_ramps); -} - - - -/** - * Get current the gamma ramps for a CRTC, `double` version - * - * @param this The CRTC state - * @param ramps The gamma ramps to fill with the current values - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_x_randr_crtc_get_gamma_rampsd(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsd_t* restrict ramps) -{ - return libgamma_translated_ramp_get(this, ramps, -2, 16, - libgamma_x_randr_crtc_get_gamma_ramps); -} - - -/** - * Set the gamma ramps for a CRTC, `double` version - * - * @param this The CRTC state - * @param ramps The gamma ramps to apply - * @return Zero on success, otherwise (negative) the value of an - * error identifier provided by this library - */ -int libgamma_x_randr_crtc_set_gamma_rampsd(libgamma_crtc_state_t* restrict this, - libgamma_gamma_rampsd_t ramps) -{ - return libgamma_translated_ramp_set(this, ramps, -2, 16, - libgamma_x_randr_crtc_set_gamma_ramps); -} - |