aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wlr/types/wlr_output_damage.h2
-rw-r--r--types/wlr_output_damage.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_output_damage.h b/include/wlr/types/wlr_output_damage.h
index 9f59200c..efb9a707 100644
--- a/include/wlr/types/wlr_output_damage.h
+++ b/include/wlr/types/wlr_output_damage.h
@@ -82,7 +82,7 @@ bool wlr_output_damage_attach_render(struct wlr_output_damage *output_damage,
* Accumulates damage and schedules a `frame` event.
*/
void wlr_output_damage_add(struct wlr_output_damage *output_damage,
- pixman_region32_t *damage);
+ const pixman_region32_t *damage);
/**
* Damages the whole output and schedules a `frame` event.
*/
diff --git a/types/wlr_output_damage.c b/types/wlr_output_damage.c
index 92c421ff..64920609 100644
--- a/types/wlr_output_damage.c
+++ b/types/wlr_output_damage.c
@@ -168,7 +168,7 @@ bool wlr_output_damage_attach_render(struct wlr_output_damage *output_damage,
}
void wlr_output_damage_add(struct wlr_output_damage *output_damage,
- pixman_region32_t *damage) {
+ const pixman_region32_t *damage) {
int width, height;
wlr_output_transformed_resolution(output_damage->output, &width, &height);