wlr_output: Make wlr_output_effective_resolution take state

This commit is contained in:
Alexander Orzechowski 2026-05-15 11:46:24 -04:00
parent d65a3fceaf
commit a8aa9fdf2b
10 changed files with 20 additions and 14 deletions

View file

@ -439,7 +439,7 @@ static void update_node_update_outputs(struct wlr_scene_node *node,
.x = scene_output->x,
.y = scene_output->y,
};
wlr_output_effective_resolution(scene_output->output,
wlr_output_effective_resolution(scene_output->output, NULL,
&output_box.width, &output_box.height);
pixman_region32_t intersection;
@ -2687,7 +2687,7 @@ static void scene_output_for_each_scene_buffer(const struct wlr_box *output_box,
void wlr_scene_output_for_each_buffer(struct wlr_scene_output *scene_output,
wlr_scene_buffer_iterator_func_t iterator, void *user_data) {
struct wlr_box box = { .x = scene_output->x, .y = scene_output->y };
wlr_output_effective_resolution(scene_output->output,
wlr_output_effective_resolution(scene_output->output, NULL,
&box.width, &box.height);
scene_output_for_each_scene_buffer(&box, &scene_output->scene->tree.node, 0, 0,
iterator, user_data);