diff options
-rw-r--r-- | include/wlr/types/wlr_damage_ring.h | 2 | ||||
-rw-r--r-- | types/wlr_damage_ring.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_damage_ring.h b/include/wlr/types/wlr_damage_ring.h index 67fedddc..d503a502 100644 --- a/include/wlr/types/wlr_damage_ring.h +++ b/include/wlr/types/wlr_damage_ring.h @@ -52,7 +52,7 @@ void wlr_damage_ring_set_bounds(struct wlr_damage_ring *ring, * Returns true if the region intersects the ring bounds, false otherwise. */ bool wlr_damage_ring_add(struct wlr_damage_ring *ring, - pixman_region32_t *damage); + const pixman_region32_t *damage); /** * Add a box to the current damage. diff --git a/types/wlr_damage_ring.c b/types/wlr_damage_ring.c index 000aba93..4623b915 100644 --- a/types/wlr_damage_ring.c +++ b/types/wlr_damage_ring.c @@ -39,7 +39,7 @@ void wlr_damage_ring_set_bounds(struct wlr_damage_ring *ring, } bool wlr_damage_ring_add(struct wlr_damage_ring *ring, - pixman_region32_t *damage) { + const pixman_region32_t *damage) { pixman_region32_t clipped; pixman_region32_init(&clipped); pixman_region32_intersect_rect(&clipped, damage, |