damage_ring: Remove return value of wlr_damage_ring_add/wlr_damage_ring_add_box

Compositors should compute whether the damage is part of the output
themselves.
This commit is contained in:
Alexander Orzechowski 2024-10-07 14:45:17 -04:00 committed by Kirill Primak
parent fbafd8ed94
commit 502eb38d80
2 changed files with 8 additions and 31 deletions

View file

@ -54,18 +54,14 @@ void wlr_damage_ring_set_bounds(struct wlr_damage_ring *ring,
/**
* Add a region to the current damage.
*
* Returns true if the region intersects the ring bounds, false otherwise.
*/
bool wlr_damage_ring_add(struct wlr_damage_ring *ring,
void wlr_damage_ring_add(struct wlr_damage_ring *ring,
const pixman_region32_t *damage);
/**
* Add a box to the current damage.
*
* Returns true if the box intersects the ring bounds, false otherwise.
*/
bool wlr_damage_ring_add_box(struct wlr_damage_ring *ring,
void wlr_damage_ring_add_box(struct wlr_damage_ring *ring,
const struct wlr_box *box);
/**