diff options
author | Isaac Freund <ifreund@ifreund.xyz> | 2020-10-11 16:06:26 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-11 11:01:46 +0100 |
commit | 0724b3c453e45b59aecdaecd6b654e1febb68dc7 (patch) | |
tree | c6f824a89536064d7ee0b17d35e2da332679bdfb | |
parent | 7693f61d813869f7f8b3c658f610a16f6283b24f (diff) |
Use uint32_t in wlr_renderer_begin signature
This matches the signature of wlr_renderer_impl.begin
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 2 | ||||
-rw-r--r-- | 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); |