From 2ebecb6727b55dbdfe067d27bdb1679014e66879 Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 22 Jul 2018 17:37:01 +0100 Subject: backend/drm: allow to pass empty gamma ramp to reset it --- include/wlr/types/wlr_output.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index e9f3ae3b..3a9f3c41 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -182,6 +182,8 @@ uint32_t wlr_output_get_gamma_size(struct wlr_output *output); * Sets the gamma table for this output. `r`, `g` and `b` are gamma ramps for * red, green and blue. `size` is the length of the ramps and must not exceed * the value returned by `wlr_output_get_gamma_size`. + * + * Providing zero-sized ramps resets the gamma table. */ bool wlr_output_set_gamma(struct wlr_output *output, uint32_t size, uint16_t *r, uint16_t *g, uint16_t *b); -- cgit v1.2.3