aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/scene/wlr_scene.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c
index 5d1b8066..103ea401 100644
--- a/types/scene/wlr_scene.c
+++ b/types/scene/wlr_scene.c
@@ -668,7 +668,8 @@ void wlr_scene_buffer_set_buffer_with_damage(struct wlr_scene_buffer *scene_buff
pixman_region32_t cull_region;
pixman_region32_init(&cull_region);
- wlr_region_scale(&cull_region, &scene_buffer->node.visible, output_scale);
+ pixman_region32_copy(&cull_region, &scene_buffer->node.visible);
+ scale_output_damage(&cull_region, output_scale);
pixman_region32_translate(&cull_region, -lx * output_scale, -ly * output_scale);
pixman_region32_intersect(&output_damage, &output_damage, &cull_region);
pixman_region32_fini(&cull_region);