diff options
Diffstat (limited to 'src/gamma-drm.c')
-rw-r--r-- | src/gamma-drm.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gamma-drm.c b/src/gamma-drm.c index 877e2a9..73fd718 100644 --- a/src/gamma-drm.c +++ b/src/gamma-drm.c @@ -250,7 +250,7 @@ drm_set_option(struct gamma_state *state, const char *key, const char *value) static int drm_set_temperature( - struct gamma_state *state, const struct color_setting *setting, int preserve) + struct gamma_state *state, const struct colour_setting *setting, int preserve) { struct drm_crtc_state *crtcs = state->crtcs; uint32_t last_gamma_size = 0; @@ -283,10 +283,8 @@ drm_set_temperature( b_gamma[i] = value; } - colorramp_fill_u16(r_gamma, g_gamma, b_gamma, crtcs->gamma_size, - crtcs->gamma_size, crtcs->gamma_size, setting); - drmModeCrtcSetGamma(state->fd, crtcs->crtc_id, crtcs->gamma_size, - r_gamma, g_gamma, b_gamma); + colourramp_fill_u16(r_gamma, g_gamma, b_gamma, crtcs->gamma_size, crtcs->gamma_size, crtcs->gamma_size, setting); + drmModeCrtcSetGamma(state->fd, crtcs->crtc_id, crtcs->gamma_size, r_gamma, g_gamma, b_gamma); } free(r_gamma); |