mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 09:59:48 +01:00
output-damage: constify wlr_output_damage_add()
This commit is contained in:
parent
fb7bd920a6
commit
9e10e9af7f
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue