diff options
author | emersion <contact@emersion.fr> | 2018-10-03 10:36:33 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-10-03 10:36:33 +0200 |
commit | 2beb68007e707e52711200d9607f7d392bec21cd (patch) | |
tree | 300a0fdd228a26d61acd1e7ad3ef0412cf3b0dfa /include/wlr/interfaces | |
parent | 1dd523c34c71a7d156c62bc3e3f033113b666e4d (diff) |
output: make gamma size a size_t and gamma table const
Diffstat (limited to 'include/wlr/interfaces')
-rw-r--r-- | include/wlr/interfaces/wlr_output.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index 4cbf0d67..bfb3bc9d 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -28,9 +28,9 @@ struct wlr_output_impl { void (*destroy)(struct wlr_output *output); bool (*make_current)(struct wlr_output *output, int *buffer_age); bool (*swap_buffers)(struct wlr_output *output, pixman_region32_t *damage); - bool (*set_gamma)(struct wlr_output *output, - uint32_t size, uint16_t *r, uint16_t *g, uint16_t *b); - uint32_t (*get_gamma_size)(struct wlr_output *output); + bool (*set_gamma)(struct wlr_output *output, size_t size, + const uint16_t *r, const uint16_t *g, const uint16_t *b); + size_t (*get_gamma_size)(struct wlr_output *output); bool (*export_dmabuf)(struct wlr_output *output, struct wlr_dmabuf_attributes *attribs); }; |