mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
Cleaned up some duplicated pixel format-related code in Font files.
--HG-- branch : minor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user