aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-10-24 12:55:01 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-11 23:11:17 +0000
commit93597952aa346171d51bc6de7a894b1462c3cc6c (patch)
treeec35f049dfd07c7c9eb188683c6921d518036d76
parent6baf045590387f05c42b1302ee0e90385ef26d07 (diff)
buffer: constify wlr_client_buffer_apply_damage()
-rw-r--r--include/wlr/types/wlr_buffer.h2
-rw-r--r--types/buffer/client.c2
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;