mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
lua_cc_text.cpp: use 'text_mode' instead 'mode' in api
Prevent possible ambiguity of text mode parameter. Parameter 'mode' deprecated, but still available for downward compatibility.
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
* to luainstance.h changes
|
||||
*/
|
||||
#define LUA_API_VERSION_MAJOR 1
|
||||
#define LUA_API_VERSION_MINOR 81
|
||||
#define LUA_API_VERSION_MINOR 82
|
||||
|
@@ -95,7 +95,9 @@ int CLuaInstCCText::CCTextNew(lua_State *L)
|
||||
tableLookup(L, "dx", dx);
|
||||
tableLookup(L, "dy", dy);
|
||||
tableLookup(L, "text", text);
|
||||
tableLookup(L, "mode", tmpMode);
|
||||
//to prevent possible ambiguity of text mode, use 'text_mode' instead 'mode' in api
|
||||
tableLookup(L, "text_mode", tmpMode);
|
||||
tableLookup(L, "mode", tmpMode); //NOTE: parameter 'mode' deprecated, but still available for downward compatibility
|
||||
tableLookup(L, "font_text", font_text);
|
||||
if (font_text >= SNeutrinoSettings::FONT_TYPE_COUNT || font_text < 0)
|
||||
font_text = SNeutrinoSettings::FONT_TYPE_MENU;
|
||||
|
Reference in New Issue
Block a user