CInfoViewer: fix infobar size in virtual zap mode

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
defans
2016-01-03 21:09:37 +01:00
committed by Thilo Graf
parent d88e40f41d
commit 64c412071a

View File

@@ -435,6 +435,10 @@ void CInfoViewer::paintHead()
void CInfoViewer::paintBody()
{
int h_body = InfoHeightY - header_height + (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0);
if(virtual_zap_mode)
h_body -= (g_settings.infobar_casystem_display < 2 ? infoViewerBB->bottom_bar_offset : 0);
if (body == NULL)
body = new CComponentsShapeSquare(ChanInfoX, ChanNameY + header_height, BoxEndX-ChanInfoX, h_body);
else