From bdd1709cc02fdeab1e03b3591b525d2bd47891f3 Mon Sep 17 00:00:00 2001 From: defans Date: Thu, 3 Oct 2013 16:50:21 +0200 Subject: [PATCH] Fix infoviewer global font zoom faktor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change the zoom factor made ​​time display broken, left side Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/ab1c33f02422cb2f4e627f999e38dbf7809ae684 Author: defans Date: 2013-10-03 (Thu, 03 Oct 2013) ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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();