summaryrefslogtreecommitdiff
path: root/skinclassic.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 /skinclassic.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 'skinclassic.c')
-rw-r--r--skinclassic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/skinclassic.c b/skinclassic.c
index bbf36766..b9919d84 100644
--- a/skinclassic.c
+++ b/skinclassic.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinclassic.c 2.9 2013/02/22 15:25:31 kls Exp $
+ * $Id: skinclassic.c 2.10 2013/03/03 15:26:09 kls Exp $
*/
#include "skinclassic.h"
@@ -391,8 +391,7 @@ void cSkinClassicDisplayMenu::SetRecording(const cRecording *Recording)
const cFont *font = cFont::GetFont(fontOsd);
int y = y2;
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, x1, y, x2 - x1, y3 - y, t, font, Theme.Color(clrMenuEventTime), Theme.Color(clrBackground));
y += ts.Height();
if (Info->GetEvent()->ParentalRating()) {