From 37fe53a1388c07da2ca5afab45aa40a4f9e41b63 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 2 Jan 2016 07:28:40 +0100 Subject: m fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blackbody.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/blackbody.c b/src/blackbody.c index ca337ae..8bb5873 100644 --- a/src/blackbody.c +++ b/src/blackbody.c @@ -22,6 +22,7 @@ #include "blackbody.h" #include #include +#include @@ -90,7 +91,7 @@ ciexyy_to_srgb(double x, double y, double Y, double *r, double *g, double *b) * @param b Output parameter for the blue value. */ static void -interpolate(double x1, double y1, double x2, double y2, double temp, double *r, double *g, double *g) +interpolate(double x1, double y1, double x2, double y2, double temp, double *r, double *g, double *b) { double weight = fmod(temp, (double)DELTA) / (double)DELTA; double x = x1 * (1 - weight) + x2 * weight; -- cgit v1.2.3-70-g09d2