Slightly reduced the memory usage of Fonts / Rasterizers created using the default font.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-02-16 04:19:07 -04:00
parent fb79788d74
commit 24cb934fa6
7 changed files with 27 additions and 14 deletions
+7 -1
View File
@@ -80,7 +80,13 @@ int w_newTrueTypeRasterizer(lua_State *L)
}
else
{
filesystem::FileData *d = filesystem::luax_getfiledata(L, 1);
love::Data *d = nullptr;
if (luax_istype(L, 1, DATA_T))
d = luax_checkdata(L, 1);
else
d = filesystem::luax_getfiledata(L, 1);
int size = luaL_optint(L, 2, 12);
luax_catchexcept(L,