mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-30 00:15:58 +01:00
wlr_scene: Expand damage cull region with fractional scales
This commit is contained in:
parent
fe21fc6920
commit
32d00984e1
1 changed files with 2 additions and 1 deletions
|
@ -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_t cull_region;
|
||||||
pixman_region32_init(&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_translate(&cull_region, -lx * output_scale, -ly * output_scale);
|
||||||
pixman_region32_intersect(&output_damage, &output_damage, &cull_region);
|
pixman_region32_intersect(&output_damage, &output_damage, &cull_region);
|
||||||
pixman_region32_fini(&cull_region);
|
pixman_region32_fini(&cull_region);
|
||||||
|
|
Loading…
Reference in a new issue