diff options
Diffstat (limited to 'skinclassic.c')
-rw-r--r-- | skinclassic.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/skinclassic.c b/skinclassic.c index 26408993..3b01cb96 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 4.1 2016/12/22 14:07:04 kls Exp $ + * $Id: skinclassic.c 5.1 2021/07/01 15:40:46 kls Exp $ */ #include "skinclassic.h" @@ -393,11 +393,20 @@ void cSkinClassicDisplayMenu::SetRecording(const cRecording *Recording) 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(); + int xt = x3; if (Info->GetEvent()->ParentalRating()) { cString buffer = cString::sprintf(" %s ", *Info->GetEvent()->GetParentalRatingString()); const cFont *font = cFont::GetFont(fontSml); int w = font->Width(buffer); - osd->DrawText(x3 - w, y, buffer, Theme.Color(clrMenuEventVpsFg), Theme.Color(clrMenuEventVpsBg), font, w); + osd->DrawText(xt - w, y, buffer, Theme.Color(clrMenuEventVpsFg), Theme.Color(clrMenuEventVpsBg), font, w); + xt -= w + 5; + } + if (Info->Errors() > 0) { + cString buffer = cString::sprintf(" %d %s ", Info->Errors(), tr("errors")); + const cFont *font = cFont::GetFont(fontSml); + int w = font->Width(buffer); + osd->DrawText(xt - w, y, buffer, Theme.Color(clrMenuEventVpsFg), Theme.Color(clrMenuEventVpsBg), font, w); + xt -= w + 5; } y += font->Height(); const char *Title = Info->Title(); |