mirror of https://github.com/bjornbytes/lovr.git
Adjust;
This commit is contained in:
parent
688c698808
commit
ed035f9e81
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue