infoviewer: use all free space for epg title

this should also avoid display artifacts due to runtime
changes in size of running time display


Origin commit data
------------------
Branch: ni/coolstream
Commit: b4a3cf14c1
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-12-26 (Tue, 26 Dec 2017)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2017-12-26 22:58:36 +01:00
committed by vanhofen
parent e016bd1e7f
commit db32ea5437

View File

@@ -1828,9 +1828,9 @@ void CInfoViewer::display_Info(const char *current, const char *next,
//current event //current event
if (current && update_current){ if (current && update_current){
if (txt_cur_event == NULL) if (txt_cur_event == NULL)
txt_cur_event = new CComponentsTextTransp(NULL, xStart, CurrInfoY - height, currTimeX - xStart - 5, height); txt_cur_event = new CComponentsTextTransp(NULL, xStart, CurrInfoY - height, currTimeX - xStart, height);
else else
txt_cur_event->setDimensionsAll(xStart, CurrInfoY - height, currTimeX - xStart - 5, height); txt_cur_event->setDimensionsAll(xStart, CurrInfoY - height, currTimeX - xStart, height);
txt_cur_event->setText(current, CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO], colored_event_C ? COL_COLORED_EVENTS_TEXT : COL_INFOBAR_TEXT); txt_cur_event->setText(current, CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO], colored_event_C ? COL_COLORED_EVENTS_TEXT : COL_INFOBAR_TEXT);
if (txt_cur_event->isPainted()) if (txt_cur_event->isPainted())
@@ -1864,9 +1864,9 @@ void CInfoViewer::display_Info(const char *current, const char *next,
if (next && update_next) if (next && update_next)
{ {
if (txt_next_event == NULL) if (txt_next_event == NULL)
txt_next_event = new CComponentsTextTransp(NULL, xStart, NextInfoY, nextTimeX - xStart - 5, height); txt_next_event = new CComponentsTextTransp(NULL, xStart, NextInfoY, nextTimeX - xStart, height);
else else
txt_next_event->setDimensionsAll(xStart, NextInfoY, nextTimeX - xStart - 5, height); txt_next_event->setDimensionsAll(xStart, NextInfoY, nextTimeX - xStart, height);
txt_next_event->setText(next, CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO], colored_event_N ? COL_COLORED_EVENTS_TEXT : COL_INFOBAR_TEXT); txt_next_event->setText(next, CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO], colored_event_N ? COL_COLORED_EVENTS_TEXT : COL_INFOBAR_TEXT);
if (txt_next_event->isPainted()) if (txt_next_event->isPainted())
txt_next_event->hide(); txt_next_event->hide();