From 0724b3c453e45b59aecdaecd6b654e1febb68dc7 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 11 Oct 2020 16:06:26 +0200 Subject: Use uint32_t in wlr_renderer_begin signature This matches the signature of wlr_renderer_impl.begin --- include/wlr/render/wlr_renderer.h | 2 +- render/wlr_renderer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 513f412a..363a12e4 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -35,7 +35,7 @@ struct wlr_renderer { struct wlr_renderer *wlr_renderer_autocreate(struct wlr_egl *egl, EGLenum platform, void *remote_display, EGLint *config_attribs, EGLint visual_id); -void wlr_renderer_begin(struct wlr_renderer *r, int width, int height); +void wlr_renderer_begin(struct wlr_renderer *r, uint32_t width, uint32_t height); void wlr_renderer_end(struct wlr_renderer *r); void wlr_renderer_clear(struct wlr_renderer *r, const float color[static 4]); /** diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 8fa11cc9..bdcc836f 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -37,7 +37,7 @@ void wlr_renderer_destroy(struct wlr_renderer *r) { } } -void wlr_renderer_begin(struct wlr_renderer *r, int width, int height) { +void wlr_renderer_begin(struct wlr_renderer *r, uint32_t width, uint32_t height) { assert(!r->rendering); r->impl->begin(r, width, height); -- cgit v1.2.3