diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-08 16:08:53 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-08 16:08:56 +0100 |
commit | e519851bf6efde1b1709610e87dc16d98a868c0c (patch) | |
tree | 297d7efe591d6866219354c5c13b8c9a1aed2061 /src/gamma-drm.c | |
parent | .lat{ => itude}, .lon{ => gitude} (diff) | |
download | redshift-ng-e519851bf6efde1b1709610e87dc16d98a868c0c.tar.gz redshift-ng-e519851bf6efde1b1709610e87dc16d98a868c0c.tar.bz2 redshift-ng-e519851bf6efde1b1709610e87dc16d98a868c0c.tar.xz |
style
Signed-off-by: Mattias Andrée <m@maandree.se>
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); |