diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-05 12:05:53 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-03-05 12:05:53 +0100 |
commit | a57acf570d87e383fd6d89b2ac80087152792d2e (patch) | |
tree | 31e8838eda5123af2bc851eaafa80177187eb862 /skinsttng.c | |
parent | 90f57792286bcec1502625c0e275c5d573652c5e (diff) | |
download | vdr-a57acf570d87e383fd6d89b2ac80087152792d2e.tar.gz vdr-a57acf570d87e383fd6d89b2ac80087152792d2e.tar.bz2 |
Improved displaying signal strength and quality in the ST:TNG skin's channel display
Diffstat (limited to 'skinsttng.c')
-rw-r--r-- | skinsttng.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/skinsttng.c b/skinsttng.c index b628e0bc..97e53089 100644 --- a/skinsttng.c +++ b/skinsttng.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skinsttng.c 2.12 2012/03/05 10:35:16 kls Exp $ + * $Id: skinsttng.c 2.13 2012/03/05 12:01:26 kls Exp $ */ // Star Trek: The Next Generation® is a registered trademark of Paramount Pictures @@ -284,7 +284,7 @@ void cSkinSTTNGDisplayChannel::SetChannel(const cChannel *Channel, int Number) } } osd->DrawText(x3 + TextFrame, y0, ChannelString(Channel, Number), Theme.Color(clrChannelName), frameColor, cFont::GetFont(fontOsd), x - x3 - TextFrame); - lastSignalDisplay = time(NULL); // don't get slowed down during heavy zapping + lastSignalDisplay = 0; } void cSkinSTTNGDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Following) @@ -341,8 +341,8 @@ void cSkinSTTNGDisplayChannel::Flush(void) osd->DrawText(x3 + TextFrame, y6, Track ? Track->description : "", Theme.Color(clrChannelName), frameColor, font, x4 - x3 - w - 2 * TextFrame); strn0cpy(lastTrackId.description, Track ? Track->description : "", sizeof(lastTrackId.description)); } - if (time(NULL) != lastSignalDisplay) { - int DeviceNumber = cDevice::ActualDevice()->DeviceNumber() + 1; + int DeviceNumber = cDevice::ActualDevice()->DeviceNumber() + 1; + if (DeviceNumber != lastDeviceNumber || time(NULL) != lastSignalDisplay) { int SignalStrength = cDevice::ActualDevice()->SignalStrength(); int SignalQuality = cDevice::ActualDevice()->SignalQuality(); if (DeviceNumber != lastDeviceNumber || SignalStrength != lastSignalStrength || SignalQuality != lastSignalQuality) { |