Cleaned up some duplicated pixel format-related code in Font files.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-12-29 02:45:27 -04:00
parent 4a3889ae48
commit 8aa6725039
15 changed files with 88 additions and 105 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ int w_GlyphData_getFormat(lua_State *L)
GlyphData *t = luax_checkglyphdata(L, 1);
const char *str;
if (!GlyphData::getConstant(t->getFormat(), str))
if (!getConstant(t->getFormat(), str))
return luaL_error(L, "unknown GlyphData format.");
lua_pushstring(L, str);