From 50c93536f8ac96611946b2006f06ec4523620486 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Tue, 9 Jan 2018 11:40:46 +0100 Subject: [PATCH] - infoviewer: remove fixed values from showInfoFile() function Signed-off-by: Thilo Graf --- src/gui/infoviewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index e7e9cc996..547722ae6 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1997,11 +1997,11 @@ void CInfoViewer::showInfoFile() } //set position of info area - const int oOffset = 140; // outer left/right offset + const int oOffset = frameBuffer->scale2Res(140); // outer left/right offset; space for rec-Icon box const int xStart = BoxStartX + ChanWidth + oOffset; const int yStart = BoxStartY; const int width = BoxEndX - xStart - oOffset - pb_w; - const int height = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getHeight() + 2; + const int height = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO]->getHeight() + OFFSET_INNER_MIN; //create info object if (infobar_txt == NULL){