From 97b7af4ac979d2450364d10770b83ec94406ce31 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 20 Dec 2016 19:50:24 +0100 Subject: fix errors and add tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcolour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcolour.c') diff --git a/src/libcolour.c b/src/libcolour.c index 69014d3..867e280 100644 --- a/src/libcolour.c +++ b/src/libcolour.c @@ -44,7 +44,7 @@ double libcolour_srgb_decode(double t) t = -t; sign = -1; } - t = t <= 0.040448236277380506 ? t / 12.92 : pow((t + 0.055) / 1.055, 2.4); + t = t <= 0.0031306684425217108 * 12.92 ? t / 12.92 : pow((t + 0.055) / 1.055, 2.4); return t * sign; } -- cgit v1.2.3-70-g09d2