From f65891932a6d9503ce958e747b277b8ec80d5501 Mon Sep 17 00:00:00 2001 From: mid <> Date: Thu, 28 Aug 2025 23:32:03 +0300 Subject: [PATCH] k3Font walls --- src/luaapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/luaapi.c b/src/luaapi.c index 9652144..03466a2 100644 --- a/src/luaapi.c +++ b/src/luaapi.c @@ -1924,7 +1924,7 @@ static int dagame_draw(lua_State *L) { lua_getfield(L, 1, "y"); struct k3RectF rect = {}; - k3FontSz(font, lua_tonumber(L, -4), lua_tostring(L, -3), &rect); + k3FontSz(font, lua_tonumber(L, -4), lua_tostring(L, -3), -1, &rect); if(!strcmp(lua_tostring(L, -9), "bottommiddle")) { rect.x -= rect.w / 2; @@ -1935,7 +1935,7 @@ static int dagame_draw(lua_State *L) { rect.y -= rect.h / 2; } - k3FontDraw(font, lua_tonumber(L, -2) + rect.x, lua_tonumber(L, -1) + rect.y, lua_tonumber(L, -4), lua_tostring(L, -3), (vec4) {lua_tonumber(L, -8), lua_tonumber(L, -7), lua_tonumber(L, -6), lua_tonumber(L, -5)}); + k3FontDraw(font, lua_tonumber(L, -2) + rect.x, lua_tonumber(L, -1) + rect.y, lua_tonumber(L, -4), lua_tostring(L, -3), -1, (vec4) {lua_tonumber(L, -8), lua_tonumber(L, -7), lua_tonumber(L, -6), lua_tonumber(L, -5)}); lua_pop(L, 9); }