From 9877f593616fa94691ef49015ed281c8547c1f18 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Tue, 26 Dec 2017 22:58:36 +0100 Subject: [PATCH] infoviewer: revert useless big box for running time The box is two times too big, truncating long EPG titles. --- src/gui/infoviewer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index c91f0e185..30bf9a627 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1726,10 +1726,10 @@ void CInfoViewer::display_Info(const char *current, const char *next, int currTimeW = 0; int nextTimeW = 0; - if (runningRest) - currTimeW = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getRenderWidth(runningRest)*2; + 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) + 10; 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 nextTimeX = BoxEndX - nextTimeW - 10;