diff options
Diffstat (limited to 'src/blackbody.c')
-rw-r--r-- | src/blackbody.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <unistd.h> #include <math.h> +#include <errno.h> @@ -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; |