- infoviewer: simplify body height calculation

This commit is contained in:
defans
2016-01-27 00:13:17 +01:00
committed by svenhoefer
parent 8dd426d714
commit fcd8352daf

View File

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