From b55234a74d17503ca2fecb273cfcc44549f9e43e Mon Sep 17 00:00:00 2001 From: Mattias Andrée <m@maandree.se> Date: Sun, 16 Mar 2025 14:45:03 +0100 Subject: Major refactoring and some fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée <m@maandree.se> --- src/gamma-coopgamma.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/gamma-coopgamma.c') diff --git a/src/gamma-coopgamma.c b/src/gamma-coopgamma.c index ae2c1f9..2f2b0d0 100644 --- a/src/gamma-coopgamma.c +++ b/src/gamma-coopgamma.c @@ -1,5 +1,7 @@ -/* gamma-coopgamma.h -- coopgamma gamma adjustment 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,8 +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) 2016, 2025 Mattias Andrée <m@maandree.se> */ #include "common.h" @@ -497,13 +497,13 @@ coopgamma_set_temperature(struct gamma_state *state, const struct colour_setting switch (filter->depth) { #define X(SUFFIX, TYPE, MAX, DEPTH)\ case DEPTH:\ - colourramp_fill_##SUFFIX((void *)(filter->ramps.u8.red),\ - (void *)(filter->ramps.u8.green),\ - (void *)(filter->ramps.u8.blue),\ - filter->ramps.u8.red_size,\ - filter->ramps.u8.green_size,\ - filter->ramps.u8.blue_size,\ - setting);\ + fill_ramps_##SUFFIX((void *)(filter->ramps.u8.red),\ + (void *)(filter->ramps.u8.green),\ + (void *)(filter->ramps.u8.blue),\ + filter->ramps.u8.red_size,\ + filter->ramps.u8.green_size,\ + filter->ramps.u8.blue_size,\ + setting);\ break LIST_RAMPS_STOP_VALUE_TYPES(X, ;); #undef X -- cgit v1.2.3-70-g09d2