summaryrefslogtreecommitdiff
path: root/skinclassic.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-03 14:28:33 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-03 14:28:33 +0100
commitfc3b402d430f513635edaf2f7ee7ab5b32a3247f (patch)
tree40a6615566bfe150601887de7db0b8328adef778 /skinclassic.c
parent56627cd12d9e01379d9104300fec837a4db8df48 (diff)
downloadvdr-fc3b402d430f513635edaf2f7ee7ab5b32a3247f.tar.gz
vdr-fc3b402d430f513635edaf2f7ee7ab5b32a3247f.tar.bz2
Implemented handling the "Parental Rating Descriptor"
Diffstat (limited to 'skinclassic.c')
-rw-r--r--skinclassic.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/skinclassic.c b/skinclassic.c
index 29486cb5..34efa0ac 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.1 2010/01/03 11:28:24 kls Exp $
+ * $Id: skinclassic.c 2.2 2010/01/03 14:08:17 kls Exp $
*/
#include "skinclassic.h"
@@ -345,6 +345,12 @@ void cSkinClassicDisplayMenu::SetEvent(const cEvent *Event)
osd->DrawText(x3 - w, y, buffer, Theme.Color(clrMenuEventVpsFg), Theme.Color(clrMenuEventVpsBg), font, w);
}
y += ts.Height();
+ if (Event->ParentalRating()) {
+ cString buffer = cString::sprintf(" %s ", *Event->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);
+ }
y += font->Height();
ts.Set(osd, x1, y, x2 - x1, y3 - y, Event->Title(), font, Theme.Color(clrMenuEventTitle), Theme.Color(clrBackground));
y += ts.Height();