diff options
author | emersion <contact@emersion.fr> | 2017-10-22 12:30:45 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-22 23:11:26 +0200 |
commit | 1cc8f21d8e19df2d1cc43864ae5715fbb5fbbe21 (patch) | |
tree | 60b59117337bb935ec1aa2c800dc908ede5155f2 /backend | |
parent | 86be449a3f04f24a1d0ff3b7b22b12be4a2d3c2c (diff) |
Cleanup wlr_gamma_control
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 8f80e65c..d0bdfcd5 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -211,13 +211,13 @@ static void wlr_drm_connector_swap_buffers(struct wlr_output *output) { } static void wlr_drm_connector_set_gamma(struct wlr_output *output, - uint16_t size, uint16_t *r, uint16_t *g, uint16_t *b) { + uint32_t size, uint16_t *r, uint16_t *g, uint16_t *b) { struct wlr_drm_connector *conn = (struct wlr_drm_connector *)output; struct wlr_drm_backend *drm = (struct wlr_drm_backend *)output->backend; drmModeCrtcSetGamma(drm->fd, conn->crtc->id, size, r, g, b); } -static uint16_t wlr_drm_connector_get_gamma_size(struct wlr_output *output) { +static uint32_t wlr_drm_connector_get_gamma_size(struct wlr_output *output) { struct wlr_drm_connector *conn = (struct wlr_drm_connector *)output; drmModeCrtc *crtc = conn->old_crtc; return crtc ? crtc->gamma_size : 0; |