infoviewer: simplify body height calculation

Origin commit data
------------------
Branch: ni/coolstream
Commit: fcd8352daf
Author: defans <defans@bluepeercrew.us>
Date: 2016-01-27 (Wed, 27 Jan 2016)

Origin message was:
------------------
- infoviewer: simplify body height calculation

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

------------------
This commit was generated by Migit
This commit is contained in:
defans
2016-01-27 00:13:17 +01:00
committed by vanhofen
parent 3f0fb538fe
commit 36d8afd1dc

View File

@@ -430,11 +430,11 @@ void CInfoViewer::paintHead()
void CInfoViewer::paintBody()
{
int h_body = InfoHeightY - header_height - SHADOW_OFFSET + (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0);
int y_body = ChanNameY + header_height;
int h_body = InfoHeightY - header_height - SHADOW_OFFSET;
if (!zap_mode)
h_body += infoViewerBB->bottom_bar_offset;
if(zap_mode)
h_body -= (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0);
int y_body = ChanNameY + header_height;
if (body == NULL){
body = new CComponentsShapeSquare(ChanInfoX, y_body, BoxEndX-ChanInfoX, h_body);