From b9460ab724fb8df18d22cb0e10cf6e07646fc1cf Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 25 Dec 2020 12:21:29 +0100 Subject: Stop using wlr_texture_get_size Just use wlr_texture.{width,height} directly. --- render/wlr_renderer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index b8374be9..fc224467 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -76,8 +76,12 @@ void wlr_renderer_scissor(struct wlr_renderer *r, struct wlr_box *box) { bool wlr_render_texture(struct wlr_renderer *r, struct wlr_texture *texture, const float projection[static 9], int x, int y, float alpha) { - struct wlr_box box = { .x = x, .y = y }; - wlr_texture_get_size(texture, &box.width, &box.height); + struct wlr_box box = { + .x = x, + .y = y, + .width = texture->width, + .height = texture->height, + }; float matrix[9]; wlr_matrix_project_box(matrix, &box, WL_OUTPUT_TRANSFORM_NORMAL, 0, -- cgit v1.2.3