From 9f4aeb207438b24c6b17df211b8a964eef70442f Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 17 Jun 2014 16:27:16 +0400 Subject: [PATCH] gui/scan.cpp: change signal/snr layout to vertical --- src/gui/scan.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/scan.cpp b/src/gui/scan.cpp index b78ccc80e..48ac83c52 100644 --- a/src/gui/scan.cpp +++ b/src/gui/scan.cpp @@ -201,7 +201,7 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey) mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight(); fw = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getWidth(); width = w_max(fw * 42, 0); - height = h_max(hheight + (10 * mheight), 0); //9 lines + height = h_max(hheight + (11 * mheight), 0); //9 lines x = frameBuffer->getScreenX() + (frameBuffer->getScreenWidth() - width) / 2; y = frameBuffer->getScreenY() + (frameBuffer->getScreenHeight() - height) / 2; xpos_radar = x + 36 * fw; @@ -580,7 +580,8 @@ void CScanTs::showSNR () { if (signalbox == NULL){ CFrontend * frontend = CServiceScan::getInstance()->GetFrontend(); - signalbox = new CSignalBox(xpos1, y + height - mheight - 5, width - 2*(xpos1-x), g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight(), frontend, false); + //signalbox = new CSignalBox(xpos1, y + height - mheight - 5, width - 2*(xpos1-x), g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight(), frontend, false); + signalbox = new CSignalBox(xpos1, y + height - 2*mheight - 5, width - 2*(xpos1-x), 2*g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight(), frontend, true); signalbox->setColorBody(COL_MENUCONTENT_PLUS_0); signalbox->setTextColor(COL_MENUCONTENT_TEXT); signalbox->doPaintBg(true);