diff options
author | Mattias Andrée <maandree@kth.se> | 2016-12-19 08:14:23 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-12-19 08:14:23 +0100 |
commit | 0d24c34d7fea73a0002a79e995f7c7f30b03a054 (patch) | |
tree | 01b6394e5f8b39047ed731ce82ffb193edef5b57 /src/gamma-randr.c | |
parent | Merge pull request #295 from arnej/windowsfix (diff) | |
download | redshift-ng-0d24c34d7fea73a0002a79e995f7c7f30b03a054.tar.gz redshift-ng-0d24c34d7fea73a0002a79e995f7c7f30b03a054.tar.bz2 redshift-ng-0d24c34d7fea73a0002a79e995f7c7f30b03a054.tar.xz |
Add coopgamma backend
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/gamma-randr.c')
-rw-r--r-- | src/gamma-randr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gamma-randr.c b/src/gamma-randr.c index 6fa2bc6..6d9032b 100644 --- a/src/gamma-randr.c +++ b/src/gamma-randr.c @@ -90,7 +90,7 @@ randr_init(randr_state_t *state) } int -randr_start(randr_state_t *state) +randr_start(randr_state_t *state, program_mode_t mode) { xcb_generic_error_t *error; @@ -348,8 +348,8 @@ randr_set_temperature_for_crtc(randr_state_t *state, int crtc_num, } } - colorramp_fill(gamma_r, gamma_g, gamma_b, ramp_size, - setting); + colorramp_fill_u16(gamma_r, gamma_g, gamma_b, ramp_size, + ramp_size, ramp_size, setting); /* Set new gamma ramps */ xcb_void_cookie_t gamma_set_cookie = |