From b2f6db3533f2aff20986ee33ed6364d8bd4553bb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 8 Jun 2021 09:16:18 +0200 Subject: render: drop wlr_ prefix from wlr_renderer_bind_buffer Make it clear this function is a private wlroots API and will stay that way. --- render/wlr_renderer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'render') diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 4ff43139..0f8976dd 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -49,8 +49,7 @@ void wlr_renderer_destroy(struct wlr_renderer *r) { } } -bool wlr_renderer_bind_buffer(struct wlr_renderer *r, - struct wlr_buffer *buffer) { +bool renderer_bind_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer) { assert(!r->rendering); if (!r->impl->bind_buffer) { return false; @@ -68,7 +67,7 @@ void wlr_renderer_begin(struct wlr_renderer *r, uint32_t width, uint32_t height) bool wlr_renderer_begin_with_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer) { - if (!wlr_renderer_bind_buffer(r, buffer)) { + if (!renderer_bind_buffer(r, buffer)) { return false; } wlr_renderer_begin(r, buffer->width, buffer->height); @@ -86,7 +85,7 @@ void wlr_renderer_end(struct wlr_renderer *r) { r->rendering = false; if (r->rendering_with_buffer) { - wlr_renderer_bind_buffer(r, NULL); + renderer_bind_buffer(r, NULL); r->rendering_with_buffer = false; } } -- cgit v1.2.3