aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-quartz.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma-quartz.c')
-rw-r--r--src/gamma-quartz.c12
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;
}