This commit is contained in:
bjorn 2022-09-02 18:53:50 -07:00
parent 688c698808
commit ed035f9e81
1 changed files with 7 additions and 7 deletions

View File

@ -100,13 +100,6 @@ static int l_lovrFontGetKerning(lua_State* L) {
return 1;
}
static void online(void* context, const char* string, size_t length) {
lua_State* L = context;
int index = luax_len(L, -1) + 1;
lua_pushlstring(L, string, length);
lua_rawseti(L, -2, index);
}
static int l_lovrFontGetWidth(lua_State* L) {
Font* font = luax_checktype(L, 1, Font);
uint32_t count;
@ -117,6 +110,13 @@ static int l_lovrFontGetWidth(lua_State* L) {
return 1;
}
static void online(void* context, const char* string, size_t length) {
lua_State* L = context;
int index = luax_len(L, -1) + 1;
lua_pushlstring(L, string, length);
lua_rawseti(L, -2, index);
}
static int l_lovrFontGetLines(lua_State* L) {
Font* font = luax_checktype(L, 1, Font);
uint32_t count;