aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-vidmode.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-vidmode.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-vidmode.c')
-rw-r--r--src/gamma-vidmode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gamma-vidmode.c b/src/gamma-vidmode.c
index c9682d2..96fe43c 100644
--- a/src/gamma-vidmode.c
+++ b/src/gamma-vidmode.c
@@ -57,7 +57,7 @@ vidmode_init(vidmode_state_t *state)
}
int
-vidmode_start(vidmode_state_t *state)
+vidmode_start(vidmode_state_t *state, program_mode_t mode)
{
int r;
int screen_num = state->screen_num;
@@ -202,8 +202,8 @@ vidmode_set_temperature(vidmode_state_t *state,
}
}
- colorramp_fill(gamma_r, gamma_g, gamma_b, state->ramp_size,
- setting);
+ colorramp_fill_u16(gamma_r, gamma_g, gamma_b, state->ramp_size,
+ state->ramp_size, state->ramp_size, setting);
/* Set new gamma ramps */
r = XF86VidModeSetGammaRamp(state->display, state->screen_num,