aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-vidmode.c
diff options
context:
space:
mode:
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 e604c3b..1ea585e 100644
--- a/src/gamma-vidmode.c
+++ b/src/gamma-vidmode.c
@@ -70,7 +70,7 @@ vidmode_init(vidmode_state_t **state)
}
static 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;
@@ -218,8 +218,8 @@ vidmode_set_temperature(
}
}
- 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,