aboutsummaryrefslogtreecommitdiffstats
path: root/src/colour.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/colour.c (renamed from src/colourramp.c)16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/colourramp.c b/src/colour.c
index 1aa7f27..d77c6ab 100644
--- a/src/colourramp.c
+++ b/src/colour.c
@@ -1,5 +1,7 @@
-/* colourramp.c -- colour temperature calculation source
- * This file is part of redshift-ng.
+/* redshift-ng - Automatically adjust display colour temperature according the Sun
+ *
+ * Copyright (c) 2009-2018 Jon Lund Steffensen <jonlst@gmail.com>
+ * Copyright (c) 2014-2016, 2025 Mattias Andrée <m@maandree.se>
*
* redshift-ng is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -13,10 +15,6 @@
*
* You should have received a copy of the GNU General Public License
* along with redshift-ng. If not, see <http://www.gnu.org/licenses/>.
- *
- * Copyright (c) 2013, 2014 Jon Lund Steffensen <jonlst@gmail.com>
- * Copyright (c) 2013 Ingo Thies <ithies@astro.uni-bonn.de> [historical, no longer applies]
- * Copyright (c) 2016, 2025 Mattias Andrée <m@maandree.se>
*/
#include "common.h"
@@ -56,9 +54,9 @@
}\
\
void\
- colourramp_fill_##SUFFIX(TYPE *gamma_r, TYPE *gamma_g, TYPE *gamma_b,\
- size_t size_r, size_t size_g, size_t size_b,\
- const struct colour_setting *setting)\
+ fill_ramps_##SUFFIX(TYPE *gamma_r, TYPE *gamma_g, TYPE *gamma_b,\
+ size_t size_r, size_t size_g, size_t size_b,\
+ const struct colour_setting *setting)\
{\
double r = 1, g = 1, b = 1;\
libred_get_colour(setting->temperature, &r, &g, &b);\