diff options
author | Simon Ser <contact@emersion.fr> | 2021-02-16 19:30:26 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-23 16:09:26 +0100 |
commit | 00bf6674b35bc4f3a5adaceaebab33f734b2ecd9 (patch) | |
tree | 5b98c9e02fe63c0cced70a33333a10943490682f /include/wlr | |
parent | ddfee63055d53b975039e768cdb5ee3ea92ab5ab (diff) |
output: use DRM format in wlr_output_preferred_read_format
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/render/interface.h | 2 | ||||
-rw-r--r-- | include/wlr/types/wlr_output.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 612e0afb..1e2271e4 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -42,7 +42,7 @@ struct wlr_renderer_impl { struct wlr_renderer *renderer); const struct wlr_drm_format_set *(*get_dmabuf_render_formats)( struct wlr_renderer *renderer); - enum wl_shm_format (*preferred_read_format)(struct wlr_renderer *renderer); + uint32_t (*preferred_read_format)(struct wlr_renderer *renderer); bool (*read_pixels)(struct wlr_renderer *renderer, enum wl_shm_format fmt, uint32_t *flags, uint32_t stride, uint32_t width, uint32_t height, uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 84837a59..507bfa47 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -340,8 +340,7 @@ void wlr_output_attach_buffer(struct wlr_output *output, * Get the preferred format for reading pixels. * This function might change the current rendering context. */ -bool wlr_output_preferred_read_format(struct wlr_output *output, - enum wl_shm_format *fmt); +uint32_t wlr_output_preferred_read_format(struct wlr_output *output); /** * Set the damage region for the frame to be submitted. This is the region of * the screen that has changed since the last frame. |