luainstance: add missing RADIUS_NONE; fix typo in dynfont handling

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6afe247bc3
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-03 (Fri, 03 Mar 2017)

Origin message was:
------------------
- luainstance: add missing RADIUS_NONE; fix typo in dynfont handling

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-03-03 08:55:35 +01:00
parent 65cb3b3dad
commit 52d9768acc
2 changed files with 4 additions and 3 deletions

View File

@@ -270,6 +270,7 @@ static void set_lua_variables(lua_State *L)
{ "RADIUS_MID", RADIUS_MID },
{ "RADIUS_SMALL", RADIUS_SMALL },
{ "RADIUS_MIN", RADIUS_MIN },
{ "RADIUS_NONE", RADIUS_NONE },
{ NULL, 0 }
};
@@ -343,7 +344,7 @@ static void set_lua_variables(lua_State *L)
{ "STYLE_ITALIC", (lua_Integer)CNeutrinoFonts::FONT_STYLE_ITALIC },
{ "MAX", (lua_Integer)CNeutrinoFonts::DYNFONTEXT_MAX },
{ "MAXIMUM_FONTS", (lua_Integer)CLuaInstance::DYNFONT_MAXIMUM_FONTS },
{ "TO_WIDE", (lua_Integer)CLuaInstance::DYNFONT_TO_WIDE },
{ "TOO_WIDE", (lua_Integer)CLuaInstance::DYNFONT_TOO_WIDE },
{ "TOO_HIGH", (lua_Integer)CLuaInstance::DYNFONT_TOO_HIGH },
{ NULL, 0 }
};
@@ -1050,7 +1051,7 @@ int CLuaInstance::getDynFont(lua_State *L)
dx = luaL_checkint(L, 2);
if (dx > (lua_Integer)CFrameBuffer::getInstance()->getScreenWidth(true)) {
lua_pushnil(L);
lua_pushinteger(L, DYNFONT_TO_WIDE);
lua_pushinteger(L, DYNFONT_TOO_WIDE);
return 2;
}
dy = luaL_checkint(L, 3);