diff options
author | emersion <contact@emersion.fr> | 2018-07-22 22:57:22 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-08-02 23:33:59 +0100 |
commit | 364afced3e944db97b1f4534f161541478319d69 (patch) | |
tree | 15bcd142a9b6b070d65d6fd642fc83b7a0dfd7e7 | |
parent | 1705316fa759d528b0b19b1a13819d459da20a6a (diff) |
backend/drm: remove unnecessary casts
-rw-r--r-- | backend/drm/drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index ce5a1640..9d030dff 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -231,7 +231,7 @@ static bool drm_connector_swap_buffers(struct wlr_output *output, static void fill_empty_gamma_table(uint32_t size, uint16_t *r, uint16_t *g, uint16_t *b) { 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; } } |