summaryrefslogtreecommitdiff
path: root/skinsttng.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-03-03 15:38:17 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-03-03 15:38:17 +0100
commit01c44e8b2cdee22efd2d5f5dd7813f9a8192b8f2 (patch)
tree48e9f9f4a873c5a6abdfbc7d48fbcd36b0f81737 /skinsttng.c
parent19839832147a3836fbe3d9480b6b310e0deb4a22 (diff)
downloadvdr-01c44e8b2cdee22efd2d5f5dd7813f9a8192b8f2.tar.gz
vdr-01c44e8b2cdee22efd2d5f5dd7813f9a8192b8f2.tar.bz2
The "Recording info" page of the skins that come with VDR now displays the name of the channel (if available) from which this recording was taken
Diffstat (limited to 'skinsttng.c')
-rw-r--r--skinsttng.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/skinsttng.c b/skinsttng.c
index 94f54083..39a831a8 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.16 2012/09/09 11:39:06 kls Exp $
+ * $Id: skinsttng.c 2.17 2013/03/03 15:29:28 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures
@@ -707,8 +707,7 @@ void cSkinSTTNGDisplayMenu::SetRecording(const cRecording *Recording)
int xl = x3 + TextSpacing;
int y = y3;
cTextScroller ts;
- char t[32];
- snprintf(t, sizeof(t), "%s %s", *DateString(Recording->Start()), *TimeString(Recording->Start()));
+ cString t = cString::sprintf("%s %s %s", *DateString(Recording->Start()), *TimeString(Recording->Start()), Info->ChannelName() ? Info->ChannelName() : "");
ts.Set(osd, xl, y, x4 - xl, y4 - y, t, font, Theme.Color(clrMenuEventTime), Theme.Color(clrBackground));
y += ts.Height();
if (Info->GetEvent()->ParentalRating()) {