k3Font walls
This commit is contained in:
parent
177d259304
commit
f65891932a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user