From 93597952aa346171d51bc6de7a894b1462c3cc6c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 24 Oct 2022 12:55:01 +0200 Subject: buffer: constify wlr_client_buffer_apply_damage() --- include/wlr/types/wlr_buffer.h | 2 +- types/buffer/client.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index bb0444bf..1201bdd1 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -178,6 +178,6 @@ bool wlr_resource_is_buffer(struct wl_resource *resource); * isn't mutable. */ bool wlr_client_buffer_apply_damage(struct wlr_client_buffer *client_buffer, - struct wlr_buffer *next, pixman_region32_t *damage); + struct wlr_buffer *next, const pixman_region32_t *damage); #endif diff --git a/types/buffer/client.c b/types/buffer/client.c index 6bcda941..ff25bd29 100644 --- a/types/buffer/client.c +++ b/types/buffer/client.c @@ -83,7 +83,7 @@ struct wlr_client_buffer *wlr_client_buffer_create(struct wlr_buffer *buffer, } bool wlr_client_buffer_apply_damage(struct wlr_client_buffer *client_buffer, - struct wlr_buffer *next, pixman_region32_t *damage) { + struct wlr_buffer *next, const pixman_region32_t *damage) { if (client_buffer->base.n_locks - client_buffer->n_ignore_locks > 1) { // Someone else still has a reference to the buffer return false; -- cgit v1.2.3