From 56627cd12d9e01379d9104300fec837a4db8df48 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 3 Jan 2010 12:20:37 +0100 Subject: Implemented handling the "Content Descriptor" --- skinsttng.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'skinsttng.c') diff --git a/skinsttng.c b/skinsttng.c index cf959d00..5042857b 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.1 2009/12/06 12:12:03 kls Exp $ + * $Id: skinsttng.c 2.2 2010/01/03 10:46:09 kls Exp $ */ // Star Trek: The Next Generation® is a registered trademark of Paramount Pictures @@ -601,6 +601,14 @@ void cSkinSTTNGDisplayMenu::SetEvent(const cEvent *Event) ts.Set(osd, xl, y, x4 - xl, y4 - y, Event->ShortText(), font, Theme.Color(clrMenuEventShortText), Theme.Color(clrBackground)); y += ts.Height(); } + for (int i = 0; Event->Contents(i); i++) { + const char *s = Event->ContentToString(Event->Contents(i)); + if (!isempty(s)) { + const cFont *font = cFont::GetFont(fontSml); + ts.Set(osd, xl, y, x4 - xl, y4 - y, s, font, Theme.Color(clrMenuEventShortText), Theme.Color(clrBackground)); + y += ts.Height(); + } + } y += font->Height(); if (!isempty(Event->Description())) { int yt = y; -- cgit v1.2.3