summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-03-05 12:05:53 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-03-05 12:05:53 +0100
commita57acf570d87e383fd6d89b2ac80087152792d2e (patch)
tree31e8838eda5123af2bc851eaafa80177187eb862
parent90f57792286bcec1502625c0e275c5d573652c5e (diff)
downloadvdr-a57acf570d87e383fd6d89b2ac80087152792d2e.tar.gz
vdr-a57acf570d87e383fd6d89b2ac80087152792d2e.tar.bz2
Improved displaying signal strength and quality in the ST:TNG skin's channel display
-rw-r--r--HISTORY2
-rw-r--r--skinsttng.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/HISTORY b/HISTORY
index 3f7ca5c7..b40ddcbd 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6974,3 +6974,5 @@ Video Disk Recorder Revision History
- Added some missing member initializations in cBitmap.
- Improved displaying the play mode in the ST:TNG skin.
- Made the ST:TNG skin the default in case the user selected skin is not available.
+- Improved displaying signal strength and quality in the ST:TNG skin's channel
+ display.
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) {