summaryrefslogtreecommitdiff
path: root/skinsttng.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 /skinsttng.c
parent56627cd12d9e01379d9104300fec837a4db8df48 (diff)
downloadvdr-fc3b402d430f513635edaf2f7ee7ab5b32a3247f.tar.gz
vdr-fc3b402d430f513635edaf2f7ee7ab5b32a3247f.tar.bz2
Implemented handling the "Parental Rating Descriptor"
Diffstat (limited to 'skinsttng.c')
-rw-r--r--skinsttng.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/skinsttng.c b/skinsttng.c
index 5042857b..ac92328b 100644
--- a/skinsttng.c
+++ b/skinsttng.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinsttng.c 2.2 2010/01/03 10:46:09 kls Exp $
+ * $Id: skinsttng.c 2.3 2010/01/03 14:08:11 kls Exp $
*/
// Star Trek: The Next Generation® is a registered trademark of Paramount Pictures
@@ -593,6 +593,15 @@ void cSkinSTTNGDisplayMenu::SetEvent(const cEvent *Event)
osd->DrawEllipse (x6, y, x7 - 1, yb - 1, frameColor, 5);
}
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(x4 - w, y, buffer, Theme.Color(clrMenuEventVps), frameColor, font, w);
+ int yb = y + font->Height();
+ osd->DrawRectangle(x5, y, x6 - 1, yb - 1, frameColor);
+ osd->DrawEllipse (x6, y, x7 - 1, yb - 1, frameColor, 5);
+ }
y += font->Height();
ts.Set(osd, xl, y, x4 - xl, y4 - y, Event->Title(), font, Theme.Color(clrMenuEventTitle), Theme.Color(clrBackground));
y += ts.Height();