From 02eaf5358975ff02c86a46e4c6ecd047d3a1eec4 Mon Sep 17 00:00:00 2001 From: defans Date: Sun, 3 Jan 2016 21:09:37 +0100 Subject: [PATCH] CInfoViewer: fix infobar size in virtual zap mode Signed-off-by: Thilo Graf Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/64c412071a0f641856c1d89566391295ba45f85d Author: defans Date: 2016-01-03 (Sun, 03 Jan 2016) ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 85542903d..81a4970ce 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -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