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: 21e8718a45
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2009-12-20 (Sun, 20 Dec 2009)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2009-12-20 13:36:21 +00:00
parent bd699a5a65
commit e456cc1c0e

View File

@@ -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;
}