From e519851bf6efde1b1709610e87dc16d98a868c0c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 8 Mar 2025 16:08:53 +0100 Subject: style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gamma-drm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gamma-drm.c') 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); -- cgit v1.2.3-70-g09d2