diff options
| author | Mattias Andrée <maandree@kth.se> | 2019-11-08 20:46:36 +0100 | 
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2019-11-08 20:46:36 +0100 | 
| commit | 18ea84e232f0a4b34894dcfc5b44055d40193fa2 (patch) | |
| tree | 6eb5abf5cb67c6a75a547f7c272f9dc2edc2821f | |
| parent | Add todo-file (diff) | |
| download | radharc-18ea84e232f0a4b34894dcfc5b44055d40193fa2.tar.gz radharc-18ea84e232f0a4b34894dcfc5b44055d40193fa2.tar.bz2 radharc-18ea84e232f0a4b34894dcfc5b44055d40193fa2.tar.xz | |
Use linear RGB
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | radharc.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| @@ -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; | 
