From 506df6ad66d2e774bc1990a0049f1a5fa44dfa72 Mon Sep 17 00:00:00 2001 From: Arthur LE MOIGNE Date: Sun, 11 Sep 2022 12:52:29 +0200 Subject: [PATCH] Fix issue with GRRLIB_DrawImg --- GRRLIB/GRRLIB/GRRLIB_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_render.c b/GRRLIB/GRRLIB/GRRLIB_render.c index 3630ec8..9105dc4 100644 --- a/GRRLIB/GRRLIB/GRRLIB_render.c +++ b/GRRLIB/GRRLIB/GRRLIB_render.c @@ -67,8 +67,8 @@ void GRRLIB_DrawImg (const f32 xpos, const f32 ypos, const GRRLIB_texImg *tex, guMtxRotAxisDeg(m2, &axis, degrees); guMtxConcat (m2, m1, m); - const u32 width = tex->w * 0.5; - const u32 height = tex->h * 0.5; + const f32 width = tex->w * 0.5; + const f32 height = tex->h * 0.5; guMtxTransApply(m, m, xpos +width +tex->handlex