mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
output: Change wlr_output_add_software_cursors_to_render_pass to take buffer coordinates
Since wlr_damage_ring now only works with buffer local coordinates, this creates an inpedance mismatch for compositors that want to use this function. Instead of compositors needing to the the conversion itself, change thu function to take buffer local coordinates directly.
This commit is contained in:
parent
1e949402b0
commit
402a862413
3 changed files with 10 additions and 24 deletions
|
|
@ -2208,14 +2208,7 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
|
|||
}
|
||||
}
|
||||
|
||||
pixman_region32_t cursor_damage;
|
||||
pixman_region32_init(&cursor_damage);
|
||||
pixman_region32_copy(&cursor_damage, &render_data.damage);
|
||||
wlr_region_transform(&cursor_damage, &cursor_damage,
|
||||
output->transform, resolution_width, resolution_height);
|
||||
wlr_output_add_software_cursors_to_render_pass(output, render_pass, &cursor_damage);
|
||||
pixman_region32_fini(&cursor_damage);
|
||||
|
||||
wlr_output_add_software_cursors_to_render_pass(output, render_pass, &render_data.damage);
|
||||
pixman_region32_fini(&render_data.damage);
|
||||
|
||||
if (!wlr_render_pass_submit(render_pass)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue