mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
neutrino: export screen dimensions, so that plugins don't need to jump through ugly hoops
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1176 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -328,6 +328,16 @@ void CPlugins::startPlugin(int number,int /*param*/)
|
||||
{
|
||||
// always delete old output
|
||||
delScriptOutput();
|
||||
/* export neutrino settings to the environment */
|
||||
char tmp[32];
|
||||
sprintf(tmp, "%d", g_settings.screen_StartX);
|
||||
setenv("SCREEN_OFF_X", tmp, 1);
|
||||
sprintf(tmp, "%d", g_settings.screen_StartY);
|
||||
setenv("SCREEN_OFF_Y", tmp, 1);
|
||||
sprintf(tmp, "%d", g_settings.screen_EndX);
|
||||
setenv("SCREEN_END_X", tmp, 1);
|
||||
sprintf(tmp, "%d", g_settings.screen_EndY);
|
||||
setenv("SCREEN_END_Y", tmp, 1);
|
||||
|
||||
//bool ispip = strncmp(plugin_list[number].pluginfile.c_str(), "pip", 3) ? false : true;
|
||||
bool ispip = strstr(plugin_list[number].pluginfile.c_str(), "pip") != 0;
|
||||
|
Reference in New Issue
Block a user