aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-22 17:37:01 +0100
committeremersion <contact@emersion.fr>2018-08-02 23:33:59 +0100
commit2ebecb6727b55dbdfe067d27bdb1679014e66879 (patch)
tree144bff2e7fc6f27f56131d9b4c3262f36a0a6a6f /include/wlr
parente21563ec76b5f1f500b530cd2a5787123b26d627 (diff)
backend/drm: allow to pass empty gamma ramp to reset it
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h2
1 files changed, 2 insertions, 0 deletions
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);