aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-11 17:22:11 +0200
committerSimon Ser <contact@emersion.fr>2021-09-06 18:10:26 +0200
commitbb82b6dadaea244356d54c33cc3f0e8a620cd833 (patch)
tree1c669ce6559f88bcba45bcc5c6443665a13d38be /include/wlr
parentcbe099dcc7fab1b70f3225e52cc5e340a368dd61 (diff)
buffer: make wlr_client_buffer_apply_damage return a bool
We always return the same wlr_client_buffer as the one passed in, so no need to return anything.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_buffer.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h
index 4d9640d8..c714ddb6 100644
--- a/include/wlr/types/wlr_buffer.h
+++ b/include/wlr/types/wlr_buffer.h
@@ -178,15 +178,12 @@ struct wlr_client_buffer *wlr_client_buffer_get(struct wlr_buffer *buffer);
*/
bool wlr_resource_is_buffer(struct wl_resource *resource);
/**
- * Try to update the buffer's content. On success, returns the updated buffer
- * and destroys the provided `buffer`. On error, `buffer` is intact and NULL is
- * returned.
+ * Try to update the buffer's content.
*
* Fails if there's more than one reference to the buffer or if the texture
* isn't mutable.
*/
-struct wlr_client_buffer *wlr_client_buffer_apply_damage(
- struct wlr_client_buffer *buffer, struct wlr_buffer *next,
- pixman_region32_t *damage);
+bool wlr_client_buffer_apply_damage(struct wlr_client_buffer *client_buffer,
+ struct wlr_buffer *next, pixman_region32_t *damage);
#endif