ext_image_capture_source_v1: add helper to capture scene nodes

This commit is contained in:
Simon Ser 2025-05-25 19:33:57 +02:00 committed by Kenny Levinsen
parent b066fd6b5a
commit da820070f4
5 changed files with 337 additions and 4 deletions

View file

@ -210,8 +210,6 @@ struct wlr_scene_tree *wlr_scene_tree_create(struct wlr_scene_tree *parent) {
return tree;
}
static void scene_node_get_size(struct wlr_scene_node *node, int *lx, int *ly);
typedef bool (*scene_node_box_iterator_func_t)(struct wlr_scene_node *node,
int sx, int sy, void *data);
@ -1120,8 +1118,7 @@ static struct wlr_texture *scene_buffer_get_texture(
return texture;
}
static void scene_node_get_size(struct wlr_scene_node *node,
int *width, int *height) {
void scene_node_get_size(struct wlr_scene_node *node, int *width, int *height) {
*width = 0;
*height = 0;