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
This commit is contained in:
seife
2009-12-20 13:36:21 +00:00
parent e2f4d73d78
commit 21e8718a45

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