check ChanWidth size if to smal

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@254 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
satbaby
2010-02-03 16:26:56 +00:00
parent e473ac833b
commit 8625745212

View File

@@ -218,6 +218,11 @@ 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;
if(test > ChanWidth){
ChanWidth = test;
}
}
BoxStartX = g_settings.screen_StartX + 10;