From b55234a74d17503ca2fecb273cfcc44549f9e43e Mon Sep 17 00:00:00 2001 From: Mattias Andrée 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 --- src/gamma-w32gdi.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/gamma-w32gdi.c') diff --git a/src/gamma-w32gdi.c b/src/gamma-w32gdi.c index bc6326c..e216a23 100644 --- a/src/gamma-w32gdi.c +++ b/src/gamma-w32gdi.c @@ -1,5 +1,7 @@ -/* gamma-w32gdi.c -- Windows GDI 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 + * Copyright (c) 2014-2016, 2025 Mattias Andrée * * 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,9 +15,6 @@ * * You should have received a copy of the GNU General Public License * along with redshift-ng. If not, see . - * - * Copyright (c) 2010-2017 Jon Lund Steffensen - * Copyright (c) 2025 Mattias Andrée */ #ifndef WINVER # define WINVER 0x0500 @@ -168,7 +167,7 @@ w32gdi_set_temperature( } } - colourramp_fill_u16(gamma_r, gamma_g, gamma_b, GAMMA_RAMP_SIZE, GAMMA_RAMP_SIZE, GAMMA_RAMP_SIZE, setting); + fill_ramps_u16(gamma_r, gamma_g, gamma_b, GAMMA_RAMP_SIZE, GAMMA_RAMP_SIZE, GAMMA_RAMP_SIZE, setting); /* Set new gamma ramps */ for (i = 0; i < MAX_ATTEMPTS; i++) { -- cgit v1.2.3-70-g09d2