scale fixes

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@675 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2010-07-16 11:02:47 +00:00
parent 8c8c45e06a
commit f72ca3764b
4 changed files with 11 additions and 7 deletions

View File

@@ -182,8 +182,9 @@ int CBEChannelWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
parent->hide();
int fw = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getWidth();
int fh = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight();
width = w_max (52 * fw, 20);
height = h_max (440, 50);
height = h_max (20 * fh, 50);
listmaxshow = (height-theight-0)/iheight;
height = theight+0+listmaxshow*iheight; // recalc height
x = frameBuffer->getScreenX() + (frameBuffer->getScreenWidth() - width) / 2;