diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-07 20:33:18 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-07 20:33:18 +0100 |
commit | 46ab347b651f869025b3c5a351bc9e944c39985c (patch) | |
tree | 9547c937d079eaa35b5683b45b43328555187f63 /src/colorramp.c | |
parent | New README (diff) | |
download | redshift-ng-46ab347b651f869025b3c5a351bc9e944c39985c.tar.gz redshift-ng-46ab347b651f869025b3c5a351bc9e944c39985c.tar.bz2 redshift-ng-46ab347b651f869025b3c5a351bc9e944c39985c.tar.xz |
Misc improvements
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r-- | src/colorramp.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/colorramp.c b/src/colorramp.c index d260b2c..5cdf05f 100644 --- a/src/colorramp.c +++ b/src/colorramp.c @@ -1,23 +1,23 @@ /* colorramp.c -- color temperature calculation source - This file is part of redshift-ng. - - 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 - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - redshift-ng is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - 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> -*/ + * This file is part of redshift-ng. + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * redshift-ng is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * 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" #if defined(__GNUC__) @@ -41,7 +41,7 @@ {\ size_t i;\ double v;\ - brightness /= size;\ + brightness /= (size - 1U);\ if (gamma == 1.0) {\ brightness *= (MAX);\ for (i = 0; i < size; i++)\ |