mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
buffer: constify wlr_client_buffer_apply_damage()
This commit is contained in:
parent
6baf045590
commit
93597952aa
2 changed files with 2 additions and 2 deletions
|
@ -178,6 +178,6 @@ bool wlr_resource_is_buffer(struct wl_resource *resource);
|
||||||
* isn't mutable.
|
* isn't mutable.
|
||||||
*/
|
*/
|
||||||
bool wlr_client_buffer_apply_damage(struct wlr_client_buffer *client_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);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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,
|
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) {
|
if (client_buffer->base.n_locks - client_buffer->n_ignore_locks > 1) {
|
||||||
// Someone else still has a reference to the buffer
|
// Someone else still has a reference to the buffer
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue