mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- luainstance: add offsets to lua; set Lua api version to 1.70
This commit is contained in:
@@ -4,4 +4,4 @@
|
|||||||
* to luainstance.h changes
|
* to luainstance.h changes
|
||||||
*/
|
*/
|
||||||
#define LUA_API_VERSION_MAJOR 1
|
#define LUA_API_VERSION_MAJOR 1
|
||||||
#define LUA_API_VERSION_MINOR 69
|
#define LUA_API_VERSION_MINOR 70
|
||||||
|
@@ -273,6 +273,19 @@ static void set_lua_variables(lua_State *L)
|
|||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* offsets, exported as e.g. OFFSET['SHADOW'] */
|
||||||
|
table_key offsets[] =
|
||||||
|
{
|
||||||
|
{ "SHADOW", OFFSET_SHADOW },
|
||||||
|
{ "INTER", OFFSET_INTER },
|
||||||
|
{ "INNER_LARGE", OFFSET_INNER_LARGE },
|
||||||
|
{ "INNER_MID", OFFSET_INNER_MID },
|
||||||
|
{ "INNER_SMALL", OFFSET_INNER_SMALL },
|
||||||
|
{ "INNER_MIN", OFFSET_INNER_MIN },
|
||||||
|
{ "INNER_NONE", OFFSET_INNER_NONE },
|
||||||
|
{ NULL, 0 }
|
||||||
|
};
|
||||||
|
|
||||||
/* screen offsets, exported as e.g. SCREEN['END_Y'] */
|
/* screen offsets, exported as e.g. SCREEN['END_Y'] */
|
||||||
lua_Integer xRes = (lua_Integer)CFrameBuffer::getInstance()->getScreenWidth(true);
|
lua_Integer xRes = (lua_Integer)CFrameBuffer::getInstance()->getScreenWidth(true);
|
||||||
lua_Integer yRes = (lua_Integer)CFrameBuffer::getInstance()->getScreenHeight(true);
|
lua_Integer yRes = (lua_Integer)CFrameBuffer::getInstance()->getScreenHeight(true);
|
||||||
@@ -375,6 +388,7 @@ static void set_lua_variables(lua_State *L)
|
|||||||
{ "SCREEN", screenopts },
|
{ "SCREEN", screenopts },
|
||||||
{ "FONT", fontlist },
|
{ "FONT", fontlist },
|
||||||
{ "CORNER", corners },
|
{ "CORNER", corners },
|
||||||
|
{ "OFFSET", offsets },
|
||||||
{ "MENU_RETURN", menureturn },
|
{ "MENU_RETURN", menureturn },
|
||||||
{ "APIVERSION", apiversion },
|
{ "APIVERSION", apiversion },
|
||||||
{ "PLAYSTATE", playstate },
|
{ "PLAYSTATE", playstate },
|
||||||
|
Reference in New Issue
Block a user