aboutsummaryrefslogtreecommitdiffstats
path: root/src/blackbody.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-04 23:09:31 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-04 23:09:31 +0100
commit74fe4bb1ece7868b7897bad77b656c4d31a9dd96 (patch)
tree69c733ab08450730d9a53cb2c7aaaac0905b0ff0 /src/blackbody.c
parentmake the file descriptor visible (diff)
downloadlibred-74fe4bb1ece7868b7897bad77b656c4d31a9dd96.tar.gz
libred-74fe4bb1ece7868b7897bad77b656c4d31a9dd96.tar.bz2
libred-74fe4bb1ece7868b7897bad77b656c4d31a9dd96.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/blackbody.c')
-rw-r--r--src/blackbody.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blackbody.c b/src/blackbody.c
index 92597ae..aacde5d 100644
--- a/src/blackbody.c
+++ b/src/blackbody.c
@@ -105,7 +105,7 @@ static void ciexyy_to_srgb(double x, double y, double Y, double *r, double *g, d
* @param g Output parameter for the green value.
* @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 *b)
+static void interpolate(double x1, double y1, double x2, double y2, double temp, double* r, double* g, double* b)
{
double weight = fmod(temp, (double)LIBRED_DELTA_TEMPERATURE) / (double)LIBRED_DELTA_TEMPERATURE;
double x = x1 * (1 - weight) + x2 * weight;
@@ -127,7 +127,7 @@ static void interpolate(double x1, double y1, double x2, double y2, double temp,
* @throws EDOM The selected temperature is below 1000 K.
* @throws Any error specified for pread(3).
*/
-int libred_get_colour(long int temp, double *r, double *g, double *b)
+int libred_get_colour(long int temp, double* r, double* g, double* b)
{
double values[10]; /* low:x,y,r,g,b + high:x,y,r,g,b */
off_t offset;