diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 2e6dc7856..f0f91474c 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -150,9 +150,6 @@ void CInfoViewer::Init() casysChange = g_settings.casystem_display; channellogoChange = g_settings.infobar_show_channellogo; - /* we need to calculate this only once */ - info_time_width = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth("22:22") + 10; - channel_id = CZapit::getInstance()->GetCurrentChannelID();; lcdUpdateTimer = 0; rt_x = rt_y = rt_h = rt_w = 0; @@ -186,6 +183,8 @@ void CInfoViewer::Init() */ void CInfoViewer::start () { + info_time_width = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth("22:22") + 10; + InfoHeightY = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getHeight() * 9/8 + 2 * g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getHeight() + 25; infoViewerBB->Init();