From 27fba3df4347df65fbb8b0781ae407e410ef458b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 16 Feb 2021 19:41:40 +0100 Subject: render: use DRM formats in wlr_texture_from_pixels --- include/wlr/render/interface.h | 4 ++-- include/wlr/render/wlr_texture.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include/wlr/render') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index bf2fea40..d755dbd6 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -48,8 +48,8 @@ struct wlr_renderer_impl { uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, void *data); struct wlr_texture *(*texture_from_pixels)(struct wlr_renderer *renderer, - enum wl_shm_format fmt, uint32_t stride, uint32_t width, - uint32_t height, const void *data); + uint32_t fmt, uint32_t stride, uint32_t width, uint32_t height, + const void *data); struct wlr_texture *(*texture_from_wl_drm)(struct wlr_renderer *renderer, struct wl_resource *data); struct wlr_texture *(*texture_from_dmabuf)(struct wlr_renderer *renderer, diff --git a/include/wlr/render/wlr_texture.h b/include/wlr/render/wlr_texture.h index 3a4840ac..219d514a 100644 --- a/include/wlr/render/wlr_texture.h +++ b/include/wlr/render/wlr_texture.h @@ -29,7 +29,7 @@ struct wlr_texture { * between attaching a renderer to an output and committing it. */ struct wlr_texture *wlr_texture_from_pixels(struct wlr_renderer *renderer, - enum wl_shm_format wl_fmt, uint32_t stride, uint32_t width, uint32_t height, + uint32_t fmt, uint32_t stride, uint32_t width, uint32_t height, const void *data); /** -- cgit v1.2.3