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:
vanhofen
2013-03-25 09:45:22 +01:00
parent 9768e4a40b
commit ed04cfdf36
16 changed files with 61 additions and 66 deletions

View File

@@ -94,8 +94,6 @@ extern int old_b_id;
extern cVideo * videoDecoder;
#define ConnectLineBox_Width 16
CChannelList::CChannelList(const char * const pName, bool phistoryMode, bool _vlist)
{
frameBuffer = CFrameBuffer::getInstance();
@@ -489,7 +487,7 @@ void CChannelList::calcSize()
footerHeight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight()+6;
// calculate width
full_width = frameBuffer->getScreenWidth() - frameBuffer->getScreenX() - 2*ConnectLineBox_Width;
full_width = frameBuffer->getScreenWidthRel();
if (g_settings.channellist_additional)
width = full_width / 3 * 2;
else
@@ -497,7 +495,7 @@ void CChannelList::calcSize()
// calculate height (the infobox below mainbox is handled outside height)
info_height = 2*fheight + g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->getHeight() + 10;
height = h_max ((frameBuffer->getScreenHeight() / 20 * 18) - info_height, 0);
height = frameBuffer->getScreenHeightRel() - info_height;
// calculate x position
x = getScreenStartX(full_width);