aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2022-11-26 21:01:24 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-11-29 07:43:39 +0000
commit32d00984e19b494c1f9fb04d6064777bc42ed943 (patch)
treec4b5813dd9be9e6e0fe2f51fae021f4223aa83fb
parentfe21fc6920cc272292a77b46adc79e5db1e21abc (diff)
wlr_scene: Expand damage cull region with fractional scales
-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);