backend/drm: allow to pass empty gamma ramp to reset it

This commit is contained in:
emersion 2018-07-22 17:37:01 +01:00
parent e21563ec76
commit 2ebecb6727
2 changed files with 38 additions and 12 deletions

View file

@ -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);