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-quartz.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/gamma-quartz.c') 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; } -- cgit v1.2.3-70-g09d2