aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-24 12:58:23 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-11 23:11:17 +0000
commit9e10e9af7f7d7013d81023c923216dadbe60c58f (patch)
tree13f3bfefee16f16d611608140a7fb0c6bd8f9b8b
parentfb7bd920a641eb67265529b9f87de29452b4846e (diff)
output-damage: constify wlr_output_damage_add()
-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);