output-damage: constify wlr_output_damage_add()

This commit is contained in:
Simon Ser 2022-10-24 12:58:23 +02:00 committed by Simon Zeni
parent fb7bd920a6
commit 9e10e9af7f
2 changed files with 2 additions and 2 deletions

View File

@ -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.
*/

View File

@ -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);