From 32d00984e19b494c1f9fb04d6064777bc42ed943 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sat, 26 Nov 2022 21:01:24 -0500 Subject: [PATCH] wlr_scene: Expand damage cull region with fractional scales --- types/scene/wlr_scene.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);