From b42c9662303d1a33ebe038d1895c08945cdbd40f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Mar 2025 19:26:58 +0100 Subject: Cleanup and style update (avoid typedef) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/colorramp.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/colorramp.c') diff --git a/src/colorramp.c b/src/colorramp.c index a9db111..41233d5 100644 --- a/src/colorramp.c +++ b/src/colorramp.c @@ -18,10 +18,6 @@ Copyright (c) 2013 Ingo Thies [historical, no longer applies] Copyright (c) 2016, 2025 Mattias Andrée */ - -#include -#include - #include "common.h" /* Helper macro used in the fill functions */ @@ -31,8 +27,8 @@ #define X(SUFFIX, TYPE, MAX, TRUE_MAX, DEPTH)\ void\ colorramp_fill_##SUFFIX(TYPE *gamma_r, TYPE *gamma_g, TYPE *gamma_b,\ - size_t size_r, size_t size_g, size_t size_b,\ - const color_setting_t *setting)\ + size_t size_r, size_t size_g, size_t size_b,\ + const struct color_setting *setting)\ {\ double r = 1, g = 1, b = 1;\ size_t i;\ @@ -44,5 +40,3 @@ LIST_RAMPS_STOP_VALUE_TYPES #undef X - -#undef F -- cgit v1.2.3-70-g09d2