aboutsummaryrefslogtreecommitdiffstats
path: root/src/libclut.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-13 20:12:43 +0200
committerMattias Andrée <maandree@kth.se>2016-07-13 20:12:43 +0200
commitd2f79ceff904114d774d71ee72fe5f3b745a31ad (patch)
treed4e84eaa2ad648906e02842c1fcc74919f86e70a /src/libclut.h
parentMore tests and bug fixes (diff)
downloadlibclut-d2f79ceff904114d774d71ee72fe5f3b745a31ad.tar.gz
libclut-d2f79ceff904114d774d71ee72fe5f3b745a31ad.tar.bz2
libclut-d2f79ceff904114d774d71ee72fe5f3b745a31ad.tar.xz
Test and fix libclut_linearise and libclut_standardise
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/libclut.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libclut.h b/src/libclut.h
index d355d13..e469260 100644
--- a/src/libclut.h
+++ b/src/libclut.h
@@ -941,7 +941,7 @@
LIBCLUT_GCC_ONLY__(__attribute__((__const__, __leaf__)))
double (libclut_model_linear_to_standard1)(double);
#define libclut_model_linear_to_standard1(c) \
- (((double)(c) <= 0.0031308) ? (12.92 * (double)(c)) : ((1.0 + 0.055) * pow((double)(c), 1.0 / 2.4)))
+ (((double)(c) <= 0.0031308) ? (12.92 * (double)(c)) : ((1.0 + 0.055) * pow((double)(c), 1.0 / 2.4) - 0.055))
/**