Missed a float.

This commit is contained in:
Adam Harrison 2021-09-25 00:37:08 -04:00
parent 806e4bc970
commit 42d72cc296
1 changed files with 1 additions and 1 deletions

View File

@ -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) };