Add set_gamma and get_gamma_size to wlr_output_impl

This commit is contained in:
emersion 2017-09-06 18:53:08 +02:00
parent cd125377fc
commit 6f98b5a337
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 29 additions and 3 deletions

View file

@ -14,6 +14,9 @@ struct wlr_output_impl {
void (*destroy)(struct wlr_output *output);
void (*make_current)(struct wlr_output *output);
void (*swap_buffers)(struct wlr_output *output);
void (*set_gamma)(struct wlr_output *output,
uint16_t size, uint16_t *r, uint16_t *g, uint16_t *b);
uint16_t (*get_gamma_size)(struct wlr_output *output);
};
void wlr_output_init(struct wlr_output *output, const struct wlr_output_impl *impl);