output-damage: constify wlr_output_damage_add()

Simon Ser 2 years ago committed by Simon Zeni
parent fb7bd920a6
commit 9e10e9af7f

@ -82,7 +82,7 @@ bool wlr_output_damage_attach_render(struct wlr_output_damage *output_damage,
* Accumulates damage and schedules a `frame` event. * Accumulates damage and schedules a `frame` event.
*/ */
void wlr_output_damage_add(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);
/** /**
* Damages the whole output and schedules a `frame` event. * Damages the whole output and schedules a `frame` event.
*/ */

@ -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, void wlr_output_damage_add(struct wlr_output_damage *output_damage,
pixman_region32_t *damage) { const pixman_region32_t *damage) {
int width, height; int width, height;
wlr_output_transformed_resolution(output_damage->output, &width, &height); wlr_output_transformed_resolution(output_damage->output, &width, &height);

Loading…
Cancel
Save