diff --git a/src/api/l_graphics_font.c b/src/api/l_graphics_font.c index 8ba0f111..df2ae02c 100644 --- a/src/api/l_graphics_font.c +++ b/src/api/l_graphics_font.c @@ -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;