Bottom screen margin preset for lazy Boss

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@494 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
focus
2010-03-17 12:40:53 +00:00
parent 60d6db15d4
commit e630c1967a
6 changed files with 28 additions and 0 deletions

View File

@@ -172,6 +172,12 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
if (parent)
parent->hide();
/* set the max height to 9/10 of usable screen height
debatable, if the callers need a possibility to set this */
//FIXME width ??
height = frameBuffer->getScreenHeight() / 20 * 18; /* make sure its a multiple of 2 */
wanted_height = height;
bool fadeIn = g_settings.widget_fade;
bool fadeOut = false;
int fadeValue;