mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
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:
@@ -149,8 +149,11 @@ void CBEChannelSelectWidget::onOkKeyPressed()
|
||||
|
||||
int CBEChannelSelectWidget::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
{
|
||||
width = w_max (500, 0);
|
||||
height = h_max (440, 50);
|
||||
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 (20 * fh, 50);
|
||||
|
||||
listmaxshow = (height-theight-0)/iheight;
|
||||
height = theight+0+listmaxshow*iheight; // recalc height
|
||||
x = frameBuffer->getScreenX() + (frameBuffer->getScreenWidth() - width) / 2;
|
||||
|
Reference in New Issue
Block a user