From e456cc1c0e89676340a900f794ff5f7a7043a88a Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 20 Dec 2009 13:36:21 +0000 Subject: [PATCH] infoviewer: fix CScale sizes The CScale code does not allow for a height of 4 or 8 (it rounds up to 6 and 10 due to buggy implementation), so we might as well declare the scales with the proper size. git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@93 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/21e8718a45ddc85e1b2bfea96ffe3c8e7f8029e2 Author: Stefan Seyfried Date: 2009-12-20 (Sun, 20 Dec 2009) ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index b7be0ef82..ffd530bcf 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -154,10 +154,10 @@ void CInfoViewer::Init() virtual_zap_mode = false; chanready = 1; fileplay = 0; - sigscale = new CScale(BAR_WIDTH, 8, RED_BAR, GREEN_BAR, YELLOW_BAR); - snrscale = new CScale(BAR_WIDTH, 8, RED_BAR, GREEN_BAR, YELLOW_BAR); - hddscale = new CScale(100, 4, 50, GREEN_BAR, 75, true); - varscale = new CScale(100, 4, 50, GREEN_BAR, 75, true); + sigscale = new CScale(BAR_WIDTH, 10, RED_BAR, GREEN_BAR, YELLOW_BAR); + snrscale = new CScale(BAR_WIDTH, 10, RED_BAR, GREEN_BAR, YELLOW_BAR); + hddscale = new CScale(100, 6, 50, GREEN_BAR, 75, true); + varscale = new CScale(100, 6, 50, GREEN_BAR, 75, true); timescale = new CScale(100, TIME_BAR_HEIGHT, 30, GREEN_BAR, 70, true); channel_id = live_channel_id; }