From 18ea84e232f0a4b34894dcfc5b44055d40193fa2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 8 Nov 2019 20:46:36 +0100 Subject: Use linear RGB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- radharc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'radharc.c') diff --git a/radharc.c b/radharc.c index 10969b1..4be3b43 100644 --- a/radharc.c +++ b/radharc.c @@ -243,7 +243,9 @@ fill_filter(libcoopgamma_filter_t *restrict filter, double red, double green, do #define X(CONST, MEMBER, MAX, TYPE)\ case CONST:\ libclut_start_over(&(filter->ramps.MEMBER), MAX, TYPE, 1, 1, 1);\ + libclut_linearise(&(filter->ramps.MEMBER), MAX, TYPE, 1, 1, 1);\ libclut_rgb_brightness(&(filter->ramps.MEMBER), MAX, TYPE, red, green, blue);\ + libclut_standardise(&(filter->ramps.MEMBER), MAX, TYPE, 1, 1, 1);\ break; LIST_DEPTHS #undef X @@ -269,6 +271,7 @@ set_ramps(double red, double green, double blue) int r; size_t i, j; + libclut_model_standard_to_linear(&red, &green, &blue); for (i = 0, r = 1; i < filters_n; i++) { if (!(crtc_updates[i].master) || !(crtc_info[crtc_updates[i].crtc].supported)) continue; -- cgit v1.2.3-70-g09d2