infoviewer: fix offset between event-time and event-name

Origin commit data
------------------
Branch: ni/coolstream
Commit: 91500b9493
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-09 (Tue, 09 Jan 2018)

Origin message was:
------------------
- infoviewer: fix offset between event-time and event-name

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-01-09 11:14:08 +01:00
parent f5857485cb
commit 29cd054c07

View File

@@ -209,7 +209,7 @@ void CInfoViewer::Init()
*/
void CInfoViewer::start ()
{
info_time_width = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth("22:22") + OFFSET_INNER_SMALL; // add small offset for safety
info_time_width = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth("22:22") + OFFSET_INNER_MID;
InfoHeightY = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_CHANNAME]->getHeight() * 9/8 +
2 * g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getHeight() + 25;
@@ -1759,7 +1759,7 @@ void CInfoViewer::display_Info(const char *current, const char *next,
int xStart = InfoX;
if (starttimes)
xStart += info_time_width + OFFSET_INNER_MID;
xStart += info_time_width;
int pb_h = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight() - 4;
switch(g_settings.infobar_progressbar)