From 27828dbd1e5fca3df33aa03066bc50b947d38997 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 30 Dec 2015 22:23:24 +0100 Subject: [PATCH] CInfoViewer: optimize signal bar arrangement Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/3acd04e8652389dc4b53bbee29b5e1e558a29177 Author: Thilo Graf Date: 2015-12-30 (Wed, 30 Dec 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 536e080a6..00642447e 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1503,7 +1503,8 @@ void CInfoViewer::showSNR () SDT_freq_update = false; } if (sigbox == NULL){ - sigbox = new CSignalBox(BoxStartX+8, BoxStartY+ChanHeight/2-4, ChanWidth-12, ChanHeight/2+2, CFEManager::getInstance()->getLiveFE(), true, NULL, "S", "Q"); + int sb_x = ChanWidth *10/100; + sigbox = new CSignalBox(BoxStartX+sb_x, BoxStartY+ChanHeight/2, ChanWidth-2*sb_x, ChanHeight/2, CFEManager::getInstance()->getLiveFE(), true, NULL, "S", "Q"); sigbox->setTextColor(COL_INFOBAR_TEXT); sigbox->doPaintBg(false); }