mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
output: constify damage APIs
This commit is contained in:
parent
9e10e9af7f
commit
fe4225d5de
3 changed files with 5 additions and 5 deletions
|
|
@ -129,7 +129,7 @@ surface_damage_finish:
|
|||
}
|
||||
|
||||
void wlr_output_render_software_cursors(struct wlr_output *output,
|
||||
pixman_region32_t *damage) {
|
||||
const pixman_region32_t *damage) {
|
||||
int width, height;
|
||||
wlr_output_transformed_resolution(output, &width, &height);
|
||||
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@ static void output_state_clear_buffer(struct wlr_output_state *state) {
|
|||
}
|
||||
|
||||
void wlr_output_set_damage(struct wlr_output *output,
|
||||
pixman_region32_t *damage) {
|
||||
const pixman_region32_t *damage) {
|
||||
pixman_region32_intersect_rect(&output->pending.damage, damage,
|
||||
0, 0, output->width, output->height);
|
||||
output->pending.committed |= WLR_OUTPUT_STATE_DAMAGE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue