fix my last commit a81d99d (recalc height)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 3584a11872
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-03-17 (Sun, 17 Mar 2013)

Origin message was:
------------------
- fix my last commit a81d99d (recalc height)

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2013-03-17 20:15:17 +01:00
parent a81d99db69
commit 7a0504a902

View File

@@ -499,11 +499,10 @@ void CChannelList::calcSize()
info_height = 2*fheight + g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST_DESCR]->getHeight() + 10;
height = h_max ((frameBuffer->getScreenHeight() / 20 * 18) - info_height, 0);
// calculate x/y positions
// calculate x position
x = getScreenStartX(full_width);
if (x < ConnectLineBox_Width)
x = ConnectLineBox_Width;
y = getScreenStartY(height + info_height);
// calculate header height
const int pic_h = 39;
@@ -525,6 +524,12 @@ void CChannelList::calcSize()
// calculate max entrys in mainbox
listmaxshow = (height - theight - footerHeight) / fheight;
// recalculate height to avoid spaces between last entry in mainbox and footer
height = theight + listmaxshow*fheight + footerHeight;
// calculate y position
y = getScreenStartY(height + info_height);
// calculate width/height of right info_zone and pip-box
infozone_width = full_width - width;
pig_width = infozone_width;