summaryrefslogtreecommitdiff
path: root/skinclassic.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-07-01 15:40:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2021-07-01 15:40:46 +0200
commit7301f2de0879fe10bf22c16191fcfd7bf836e148 (patch)
tree9a13976bb78f498f3b8e9cc2a82b59091e823372 /skinclassic.c
parent8c7d387e8650d82883685602708fe05c6b655a8b (diff)
downloadvdr-7301f2de0879fe10bf22c16191fcfd7bf836e148.tar.gz
vdr-7301f2de0879fe10bf22c16191fcfd7bf836e148.tar.bz2
The Recordings menu now marks recordings with errors, and the number of errors (if any) is displayed in the recording's Info menu
Diffstat (limited to 'skinclassic.c')
-rw-r--r--skinclassic.c13
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();