From d2f79ceff904114d774d71ee72fe5f3b745a31ad Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 13 Jul 2016 20:12:43 +0200 Subject: Test and fix libclut_linearise and libclut_standardise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libclut.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libclut.h') 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)) /** -- cgit v1.2.3-70-g09d2