mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +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
Origin commit data
------------------
Branch: ni/coolstream
Commit: 870fc37cf6
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-02-20 (Sun, 20 Feb 2011)
------------------
This commit was generated by Migit
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