Fix infoviewer global font zoom faktor

Change the zoom factor made ​​time display broken, left side
This commit is contained in:
defans
2013-10-03 16:50:21 +02:00
committed by Michael Liebmann
parent 117b7bae3c
commit ab1c33f024

View File

@@ -150,9 +150,6 @@ void CInfoViewer::Init()
casysChange = g_settings.casystem_display; casysChange = g_settings.casystem_display;
channellogoChange = g_settings.infobar_show_channellogo; 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();; channel_id = CZapit::getInstance()->GetCurrentChannelID();;
lcdUpdateTimer = 0; lcdUpdateTimer = 0;
rt_x = rt_y = rt_h = rt_w = 0; rt_x = rt_y = rt_h = rt_w = 0;
@@ -186,6 +183,8 @@ void CInfoViewer::Init()
*/ */
void CInfoViewer::start () 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 + InfoHeightY = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getHeight() * 9/8 +
2 * g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getHeight() + 25; 2 * g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getHeight() + 25;
infoViewerBB->Init(); infoViewerBB->Init();