infoviewer: revert useless big box for running time

The box is two times too big, truncating long EPG titles.
This commit is contained in:
Stefan Seyfried
2017-12-26 22:58:36 +01:00
committed by Thilo Graf
parent d633d23793
commit 9877f59361

View File

@@ -1726,10 +1726,10 @@ void CInfoViewer::display_Info(const char *current, const char *next,
int currTimeW = 0; int currTimeW = 0;
int nextTimeW = 0; int nextTimeW = 0;
if (runningRest) if (runningRest) /* 10 is the space between title and time, might be good if this would be scaled... */
currTimeW = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth(runningRest)*2; currTimeW = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth(runningRest) + 10;
if (nextDuration) if (nextDuration)
nextTimeW = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth(nextDuration)*2; nextTimeW = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth(nextDuration)+ 10;
int currTimeX = BoxEndX - currTimeW - 10; int currTimeX = BoxEndX - currTimeW - 10;
int nextTimeX = BoxEndX - nextTimeW - 10; int nextTimeX = BoxEndX - nextTimeW - 10;