Give config gamma as double to set_temperature
The gamma argument to set_temperature was incorrectly typed as an int, causing unfortunate rounding.master
parent
bcbca9e065
commit
93d7d01bad
2
main.c
2
main.c
|
@ -491,7 +491,7 @@ static void fill_gamma_table(uint16_t *table, uint32_t ramp_size, double rw,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void set_temperature(struct wl_list *outputs, int temp, int gamma) {
|
static void set_temperature(struct wl_list *outputs, int temp, double gamma) {
|
||||||
double rw, gw, bw;
|
double rw, gw, bw;
|
||||||
calc_whitepoint(temp, &rw, &gw, &bw);
|
calc_whitepoint(temp, &rw, &gw, &bw);
|
||||||
fprintf(stderr, "setting temperature to %d K\n", temp);
|
fprintf(stderr, "setting temperature to %d K\n", temp);
|
||||||
|
|
Loading…
Reference in New Issue