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-quartz.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-quartz.c')
-rw-r--r-- | src/gamma-quartz.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gamma-quartz.c b/src/gamma-quartz.c index 3d7cde3..805bb03 100644 --- a/src/gamma-quartz.c +++ b/src/gamma-quartz.c @@ -146,7 +146,7 @@ quartz_set_option(struct gamma_state *state, const char *key, const char *value) static void quartz_set_temperature_for_display(struct gamma_state *state, int display_index, - const color_setting_t *setting, int preserve) + const colour_setting_t *setting, int preserve) { float *gamma_ramps, *gamma_r, *gamma_g, *gamma_b, value; CGDirectDisplayID display = state->displays[display_index].display; @@ -174,7 +174,7 @@ quartz_set_temperature_for_display(struct gamma_state *state, int display_index, } } - colorramp_fill_float(gamma_r, gamma_g, gamma_b, ramp_size, ramp_size, ramp_size, setting); + colourramp_fill_float(gamma_r, gamma_g, gamma_b, ramp_size, ramp_size, ramp_size, setting); error = CGSetDisplayTransferByTable(display, ramp_size, gamma_r, gamma_g, gamma_b); if (error != kCGErrorSuccess) { @@ -187,14 +187,12 @@ quartz_set_temperature_for_display(struct gamma_state *state, int display_index, static int quartz_set_temperature( - struct gamma_state *state, const color_setting_t *setting, int preserve) + struct gamma_state *state, const colour_setting_t *setting, int preserve) { uint32_t i; - for (i = 0; i < state->display_count; i++) { - quartz_set_temperature_for_display( - state, i, setting, preserve); - } + for (i = 0; i < state->display_count; i++) + quartz_set_temperature_for_display(state, i, setting, preserve); return 0; } |