mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 23:42:51 +02:00
luainstance: add offsets to lua; set Lua api version to 1.70
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6eb1bb1ea4
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-03-02 (Thu, 02 Mar 2017)
Origin message was:
------------------
- luainstance: add offsets to lua; set Lua api version to 1.70
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
* to luainstance.h changes
|
||||
*/
|
||||
#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 }
|
||||
};
|
||||
|
||||
/* 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'] */
|
||||
lua_Integer xRes = (lua_Integer)CFrameBuffer::getInstance()->getScreenWidth(true);
|
||||
lua_Integer yRes = (lua_Integer)CFrameBuffer::getInstance()->getScreenHeight(true);
|
||||
@@ -375,6 +388,7 @@ static void set_lua_variables(lua_State *L)
|
||||
{ "SCREEN", screenopts },
|
||||
{ "FONT", fontlist },
|
||||
{ "CORNER", corners },
|
||||
{ "OFFSET", offsets },
|
||||
{ "MENU_RETURN", menureturn },
|
||||
{ "APIVERSION", apiversion },
|
||||
{ "PLAYSTATE", playstate },
|
||||
|
Reference in New Issue
Block a user