aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-16 00:28:48 +0100
committerMattias Andrée <maandree@kth.se>2016-12-16 00:28:48 +0100
commitfcd672bf6ddceff1e0e2fcd15933c3178e1f9402 (patch)
tree466f368d38feee792c7e4f912f4f2544c634d07c
parenttypo (diff)
downloadlibclut-fcd672bf6ddceff1e0e2fcd15933c3178e1f9402.tar.gz
libclut-fcd672bf6ddceff1e0e2fcd15933c3178e1f9402.tar.bz2
libclut-fcd672bf6ddceff1e0e2fcd15933c3178e1f9402.tar.xz
fix cielab to ciexyz conversion
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--src/libclut.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libclut.h b/src/libclut.h
index 26e27a9..6daec11 100644
--- a/src/libclut.h
+++ b/src/libclut.h
@@ -2079,8 +2079,8 @@ void (libclut_model_cielab_to_ciexyz)(double, double, double, double*, double*,
*X__ = a__ / 500 + *Y__; \
*Z__ = *Y__ - b__ / 200; \
*X__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*X__) * 0.95047; \
- *Y__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*Y__); \
- *Z__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*Z__) * 1.08883; \
+ *Y__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*Y__) * 1.08883; \
+ *Z__ = LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(*Z__); \
} \
while (0)
#define LIBCLUT_MODEL_CIELAB_TO_CIEXYZ__(C) \