diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-24 12:58:23 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-11-11 23:11:17 +0000 |
commit | 9e10e9af7f7d7013d81023c923216dadbe60c58f (patch) | |
tree | 13f3bfefee16f16d611608140a7fb0c6bd8f9b8b | |
parent | fb7bd920a641eb67265529b9f87de29452b4846e (diff) |
output-damage: constify wlr_output_damage_add()
-rw-r--r-- | include/wlr/types/wlr_output_damage.h | 2 | ||||
-rw-r--r-- | types/wlr_output_damage.c | 2 |
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); |