mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
gui/scan.cpp: change signal/snr layout to vertical
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9f4aeb2074
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-06-17 (Tue, 17 Jun 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -201,7 +201,7 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
|
|||||||
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
mheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
||||||
fw = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getWidth();
|
fw = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getWidth();
|
||||||
width = w_max(fw * 42, 0);
|
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;
|
x = frameBuffer->getScreenX() + (frameBuffer->getScreenWidth() - width) / 2;
|
||||||
y = frameBuffer->getScreenY() + (frameBuffer->getScreenHeight() - height) / 2;
|
y = frameBuffer->getScreenY() + (frameBuffer->getScreenHeight() - height) / 2;
|
||||||
xpos_radar = x + 36 * fw;
|
xpos_radar = x + 36 * fw;
|
||||||
@@ -580,7 +580,8 @@ void CScanTs::showSNR ()
|
|||||||
{
|
{
|
||||||
if (signalbox == NULL){
|
if (signalbox == NULL){
|
||||||
CFrontend * frontend = CServiceScan::getInstance()->GetFrontend();
|
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->setColorBody(COL_MENUCONTENT_PLUS_0);
|
||||||
signalbox->setTextColor(COL_MENUCONTENT_TEXT);
|
signalbox->setTextColor(COL_MENUCONTENT_TEXT);
|
||||||
signalbox->doPaintBg(true);
|
signalbox->doPaintBg(true);
|
||||||
|
Reference in New Issue
Block a user