k3Font walls

This commit is contained in:
mid 2025-08-28 23:32:03 +03:00
parent 177d259304
commit f65891932a

View File

@ -1924,7 +1924,7 @@ static int dagame_draw(lua_State *L) {
lua_getfield(L, 1, "y"); lua_getfield(L, 1, "y");
struct k3RectF rect = {}; 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")) { if(!strcmp(lua_tostring(L, -9), "bottommiddle")) {
rect.x -= rect.w / 2; rect.x -= rect.w / 2;
@ -1935,7 +1935,7 @@ static int dagame_draw(lua_State *L) {
rect.y -= rect.h / 2; 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); lua_pop(L, 9);
} }