lua instances: adopt for last rebases with splitted lua source files

TODO: check/fix lua functionality, not tested yet


Origin commit data
------------------
Branch: ni/coolstream
Commit: 7b28c80b74
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-12 (Sat, 12 Dec 2015)



------------------
This commit was generated by Migit
This commit is contained in:
2015-12-12 14:42:01 +01:00
parent 6e833a30ee
commit 3e4f973a06
3 changed files with 13 additions and 10 deletions

View File

@@ -148,7 +148,7 @@ int CLuaInstCCPicture::CCPictureHide(lua_State *L)
lua_assert(lua_istable(L,1));
CLuaCCPicture *D = CCPictureCheck(L, 1);
if (!D) return 0;
#if 0
bool no_restore = false;
if (!tableLookup(L, "no_restore", no_restore)) {
std::string tmp = "false";
@@ -156,11 +156,12 @@ int CLuaInstCCPicture::CCPictureHide(lua_State *L)
paramBoolDeprecated(L, tmp.c_str());
no_restore = (tmp == "true" || tmp == "1" || tmp == "yes");
}
#endif
if (D->parent) {
D->cp->setPicture("");
D->cp->paint();
} else
D->cp->hide(no_restore);
D->cp->hide();
return 0;
}