diff options
Diffstat (limited to 'src/platform/wayland/backend.c')
| -rw-r--r-- | src/platform/wayland/backend.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/platform/wayland/backend.c b/src/platform/wayland/backend.c index ad9ed4c..4585cd6 100644 --- a/src/platform/wayland/backend.c +++ b/src/platform/wayland/backend.c @@ -185,6 +185,12 @@ static bool impl_surface_place_under_pointer(struct yasl_surface *s, struct yasl return wayland_surface_place_under_pointer((struct wayland_surface *)s, at); } +static bool impl_surface_read_pixels(struct yasl_surface *s, uint32_t *out, size_t cap, + struct yasl_vector2i *size) +{ + return wayland_surface_read_pixels((struct wayland_surface *)s, out, cap, size); +} + static bool impl_surface_bell(struct yasl_surface *s) { return wayland_surface_bell((struct wayland_surface *)s); @@ -240,6 +246,7 @@ const struct yasl_backend_ops yasl_wayland_backend = { .surface_drag_carry = impl_surface_drag_carry, .surface_place_under_pointer = impl_surface_place_under_pointer, .surface_bell = impl_surface_bell, + .surface_read_pixels = impl_surface_read_pixels, .display_get_native_handle = impl_display_get_native_handle, .surface_get_native_handle = impl_surface_get_native_handle, }; |
