mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
strech most windows to full screen
* switchable with existing switch for 'big_windows'
* 'big_windows' default is on
Origin commit data
------------------
Branch: ni/coolstream
Commit: 759966f935
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-03-25 (Mon, 25 Mar 2013)
Origin message was:
------------------
- strech most windows to full screen
* switchable with existing switch for 'big_windows'
* 'big_windows' default is on
------------------
This commit was generated by Migit
This commit is contained in:
@@ -216,8 +216,6 @@ void CBEChannelWidget::paintDetails(int index)
|
||||
|
||||
void CBEChannelWidget::initItem2DetailsLine (int pos, int /*ch_index*/)
|
||||
{
|
||||
#define ConnectLineBox_Width 16
|
||||
|
||||
int xpos = x - ConnectLineBox_Width;
|
||||
int ypos1 = y + theight+0 + pos*fheight;
|
||||
int ypos2 = y + height + INFO_BOX_Y_OFFSET;
|
||||
@@ -297,15 +295,16 @@ int CBEChannelWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
|
||||
if (parent)
|
||||
parent->hide();
|
||||
|
||||
int fw = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getWidth();
|
||||
width = w_max ((frameBuffer->getScreenWidth() / 20 * (fw+6)), 100);
|
||||
height = h_max ((frameBuffer->getScreenHeight() / 20 * 16), (frameBuffer->getScreenHeight() / 20 * 2));
|
||||
width = frameBuffer->getScreenWidthRel();
|
||||
info_height = 2*iheight + 4;
|
||||
height = frameBuffer->getScreenHeightRel() - info_height;
|
||||
listmaxshow = (height-theight-footerHeight-0)/iheight;
|
||||
height = theight+footerHeight+listmaxshow*iheight; // recalc height
|
||||
info_height = 2*iheight + 4;
|
||||
|
||||
x = frameBuffer->getScreenX() + (frameBuffer->getScreenWidth() - width) / 2;
|
||||
y = frameBuffer->getScreenY() + (frameBuffer->getScreenHeight() - (height + info_height)) / 2;
|
||||
x = getScreenStartX(width);
|
||||
if (x < ConnectLineBox_Width)
|
||||
x = ConnectLineBox_Width;
|
||||
y = getScreenStartY(height + info_height);
|
||||
|
||||
Channels = mode == CZapitClient::MODE_TV ? &(g_bouquetManager->Bouquets[bouquet]->tvChannels) : &(g_bouquetManager->Bouquets[bouquet]->radioChannels);
|
||||
paintHead();
|
||||
|
Reference in New Issue
Block a user