From 42d72cc29652108e9c0f02fee7cd4e343f9446b8 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sat, 25 Sep 2021 00:37:08 -0400 Subject: [PATCH] Missed a float. --- src/rencache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rencache.c b/src/rencache.c index c886f362..fff6c584 100644 --- a/src/rencache.c +++ b/src/rencache.c @@ -127,7 +127,7 @@ void rencache_draw_rect(RenRect rect, RenColor color) { } } -float rencache_draw_text(lua_State *L, RenFont *font, const char *text, int x, int y, RenColor color) +float rencache_draw_text(lua_State *L, RenFont *font, const char *text, float x, int y, RenColor color) { float width = ren_font_get_width(font, text); RenRect rect = { x, y, (int)width, ren_font_get_height(font) };