diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-03-03 15:38:17 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-03-03 15:38:17 +0100 |
commit | 01c44e8b2cdee22efd2d5f5dd7813f9a8192b8f2 (patch) | |
tree | 48e9f9f4a873c5a6abdfbc7d48fbcd36b0f81737 /skinlcars.c | |
parent | 19839832147a3836fbe3d9480b6b310e0deb4a22 (diff) | |
download | vdr-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 'skinlcars.c')
-rw-r--r-- | skinlcars.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/skinlcars.c b/skinlcars.c index 7079d785..5914f4e6 100644 --- a/skinlcars.c +++ b/skinlcars.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skinlcars.c 2.19 2013/02/15 15:08:02 kls Exp $ + * $Id: skinlcars.c 2.20 2013/03/03 15:23:58 kls Exp $ */ // "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures, @@ -1599,8 +1599,7 @@ void cSkinLCARSDisplayMenu::SetRecording(const cRecording *Recording) int xl = xi00; int y = yi00; 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, xi01 - xl, yi01 - y, t, font, Theme.Color(clrEventTime), Theme.Color(clrBackground)); y += ts.Height(); if (Info->GetEvent()->ParentalRating()) { |