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-randr.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/gamma-randr.c') diff --git a/src/gamma-randr.c b/src/gamma-randr.c index 35171c0..384a9e2 100644 --- a/src/gamma-randr.c +++ b/src/gamma-randr.c @@ -328,7 +328,7 @@ randr_set_option(struct gamma_state *state, const char *key, const char *value) static int randr_set_temperature_for_crtc(struct gamma_state *state, int crtc_num, - const struct color_setting *setting, int preserve) + const struct colour_setting *setting, int preserve) { xcb_randr_crtc_t crtc; xcb_void_cookie_t gamma_set_cookie; @@ -369,12 +369,10 @@ randr_set_temperature_for_crtc(struct gamma_state *state, int crtc_num, } } - colorramp_fill_u16(gamma_r, gamma_g, gamma_b, ramp_size, - ramp_size, ramp_size, setting); + colourramp_fill_u16(gamma_r, gamma_g, gamma_b, ramp_size, ramp_size, ramp_size, setting); /* Set new gamma ramps */ - gamma_set_cookie = xcb_randr_set_crtc_gamma_checked(state->conn, crtc, ramp_size, - gamma_r, gamma_g, gamma_b); + gamma_set_cookie = xcb_randr_set_crtc_gamma_checked(state->conn, crtc, ramp_size, gamma_r, gamma_g, gamma_b); error = xcb_request_check(state->conn, gamma_set_cookie); if (error) { @@ -389,7 +387,7 @@ randr_set_temperature_for_crtc(struct gamma_state *state, int crtc_num, } static int -randr_set_temperature(struct gamma_state *state, const struct color_setting *setting, int preserve) +randr_set_temperature(struct gamma_state *state, const struct colour_setting *setting, int preserve) { int i; -- cgit v1.2.3-70-g09d2