mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
plugins: use optional flag to handle background behavior of lua plugins
Old behavior is untouched, but Lua plugins which are using neutrino-lua APi
can manage background behavior of their windows by themselves.
This flag allows more flexibility.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2029c93f1d
Author: Thilo Graf <dbt@novatux.de>
Date: 2023-01-06 (Fri, 06 Jan 2023)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -393,8 +393,14 @@ int CPlugins::startLuaPlugin(int number)
|
|||||||
#if 0
|
#if 0
|
||||||
frameBuffer->ClearFB();
|
frameBuffer->ClearFB();
|
||||||
#endif
|
#endif
|
||||||
|
std::string keep_bg_flag = "/tmp/.keep_background";
|
||||||
|
if (!file_exists(keep_bg_flag))
|
||||||
|
{
|
||||||
videoDecoder->Pig(-1, -1, -1, -1);
|
videoDecoder->Pig(-1, -1, -1, -1);
|
||||||
frameBuffer->paintBackground();
|
frameBuffer->paintBackground();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
remove(keep_bg_flag.c_str());
|
||||||
|
|
||||||
return plugin_list[number].menu_return;
|
return plugin_list[number].menu_return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user