mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
-use: getWidth()
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@256 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -218,11 +218,14 @@ void CInfoViewer::start ()
|
||||
{ /* default mode, with signal bars etc. */
|
||||
ChanWidth = 122;
|
||||
ChanHeight = 74;
|
||||
int test = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth("12555.0 MHz H") + 10;
|
||||
int test = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getWidth()*12;
|
||||
if(test > ChanWidth){
|
||||
ChanWidth = test;
|
||||
}
|
||||
|
||||
test = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->getHeight() * 9 / 8;
|
||||
if(test > ChanHeight){
|
||||
ChanHeight = test;
|
||||
}
|
||||
}
|
||||
|
||||
BoxStartX = g_settings.screen_StartX + 10;
|
||||
|
Reference in New Issue
Block a user