mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
backend/drm: remove unnecessary casts
This commit is contained in:
parent
1705316fa7
commit
364afced3e
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ static bool drm_connector_swap_buffers(struct wlr_output *output,
|
||||||
static void fill_empty_gamma_table(uint32_t size,
|
static void fill_empty_gamma_table(uint32_t size,
|
||||||
uint16_t *r, uint16_t *g, uint16_t *b) {
|
uint16_t *r, uint16_t *g, uint16_t *b) {
|
||||||
for (uint32_t i = 0; i < size; ++i) {
|
for (uint32_t i = 0; i < size; ++i) {
|
||||||
uint16_t val = (uint32_t)0xffff * (uint32_t)i / (uint32_t)(size - 1);
|
uint16_t val = (uint32_t)0xffff * i / (size - 1);
|
||||||
r[i] = g[i] = b[i] = val;
|
r[i] = g[i] = b[i] = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue