mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
CLuaInstCCWindow: try to fix window title align parameter
Additional (lua_Integer)CTextBox::NO_AUTO_LINEBREAK) overwrites
passed parameter and has no effect, because NO_AUTO_LINEBREAK is
already default.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 27eb80eb5b
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-05-10 (Wed, 10 May 2017)
------------------
This commit was generated by Migit
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 74
|
#define LUA_API_VERSION_MINOR 75
|
||||||
|
@@ -224,7 +224,7 @@ int CLuaInstCCWindow::CCWindowSetCaption(lua_State *L)
|
|||||||
lua_Integer alignment = (lua_Integer)CTextBox::NO_AUTO_LINEBREAK;
|
lua_Integer alignment = (lua_Integer)CTextBox::NO_AUTO_LINEBREAK;
|
||||||
tableLookup(L, "alignment", alignment);
|
tableLookup(L, "alignment", alignment);
|
||||||
|
|
||||||
D->w->setWindowCaption(name, alignment | (lua_Integer)CTextBox::NO_AUTO_LINEBREAK);
|
D->w->setWindowCaption(name, alignment);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user