aboutsummaryrefslogtreecommitdiffstats
path: root/src/gamma-randr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamma-randr.c')
-rw-r--r--src/gamma-randr.c10
1 files changed, 4 insertions, 6 deletions
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;