|
|
|
@ -748,10 +748,6 @@ static void damage_surface_iterator(struct wlr_surface *surface, int sx, int sy,
|
|
|
|
|
|
|
|
|
|
scale_box(&box, output->wlr_output->scale);
|
|
|
|
|
|
|
|
|
|
if (whole) {
|
|
|
|
|
wlr_box_rotated_bounds(&box, rotation, &box);
|
|
|
|
|
wlr_output_damage_add_box(output->damage, &box);
|
|
|
|
|
} else {
|
|
|
|
|
int center_x = box.x + box.width/2;
|
|
|
|
|
int center_y = box.y + box.height/2;
|
|
|
|
|
|
|
|
|
@ -770,6 +766,10 @@ static void damage_surface_iterator(struct wlr_surface *surface, int sx, int sy,
|
|
|
|
|
center_x, center_y);
|
|
|
|
|
wlr_output_damage_add(output->damage, &damage);
|
|
|
|
|
pixman_region32_fini(&damage);
|
|
|
|
|
|
|
|
|
|
if (whole) {
|
|
|
|
|
wlr_box_rotated_bounds(&box, rotation, &box);
|
|
|
|
|
wlr_output_damage_add_box(output->damage, &box);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|