mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
scene: resize damage ring on geometry update
(cherry picked from commit cf93d31736)
This commit is contained in:
parent
b79fc11df8
commit
0a4cd88637
1 changed files with 4 additions and 0 deletions
|
|
@ -1346,6 +1346,10 @@ static void scene_node_output_update(struct wlr_scene_node *node,
|
|||
|
||||
static void scene_output_update_geometry(struct wlr_scene_output *scene_output,
|
||||
bool force_update) {
|
||||
int ring_width, ring_height;
|
||||
wlr_output_transformed_resolution(scene_output->output, &ring_width, &ring_height);
|
||||
wlr_damage_ring_set_bounds(&scene_output->damage_ring, ring_width, ring_height);
|
||||
|
||||
scene_output_damage_whole(scene_output);
|
||||
|
||||
scene_node_output_update(&scene_output->scene->tree.node,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue