aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-randr.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-19 08:14:23 +0100
committerMattias Andrée <maandree@kth.se>2016-12-19 08:14:23 +0100
commit0d24c34d7fea73a0002a79e995f7c7f30b03a054 (patch)
tree01b6394e5f8b39047ed731ce82ffb193edef5b57 /src/gamma-randr.c
parentMerge pull request #295 from arnej/windowsfix (diff)
downloadredshift-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.c6
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 =