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-vidmode.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-vidmode.c')
-rw-r--r-- | src/gamma-vidmode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gamma-vidmode.c b/src/gamma-vidmode.c index 13ac50d..7f8434c 100644 --- a/src/gamma-vidmode.c +++ b/src/gamma-vidmode.c @@ -153,7 +153,7 @@ vidmode_restore(struct gamma_state *state) static int vidmode_set_temperature( - struct gamma_state *state, const struct color_setting *setting, int preserve) + struct gamma_state *state, const struct colour_setting *setting, int preserve) { uint16_t value, *gamma_ramps, *gamma_r, *gamma_g, *gamma_b; int r, i; @@ -178,8 +178,7 @@ vidmode_set_temperature( } } - colorramp_fill_u16(gamma_r, gamma_g, gamma_b, state->ramp_size, - state->ramp_size, state->ramp_size, setting); + colourramp_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, |