summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-01-20 14:05:28 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-01-20 14:05:28 +0100
commitfd839aae7b0a443db6f0eab59fcc93f03aafd0ba (patch)
treec4930ee8c1ae7e29937ed396f6778153bb47474c /osd.c
parente1ab9c1dacad9f2b3ba3a083b2b8b388289c4b72 (diff)
downloadvdr-fd839aae7b0a443db6f0eab59fcc93f03aafd0ba.tar.gz
vdr-fd839aae7b0a443db6f0eab59fcc93f03aafd0ba.tar.bz2
The 'Recordings' menu now displays a hierarchical structure
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/osd.c b/osd.c
index 02f43748..0e055771 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 1.18 2001/08/25 13:15:16 kls Exp $
+ * $Id: osd.c 1.19 2002/01/20 11:13:22 kls Exp $
*/
#include "osd.h"
@@ -150,6 +150,10 @@ void cOsdMenu::Add(cOsdItem *Item, bool Current)
void cOsdMenu::Display(void)
{
+ if (subMenu) {
+ subMenu->Display();
+ return;
+ }
visible = true;
Interface->Clear();
Interface->SetCols(cols);
@@ -179,6 +183,11 @@ void cOsdMenu::Display(void)
Interface->Status(status);
}
+void cOsdMenu::SetCurrent(cOsdItem *Item)
+{
+ current = Item ? Item->Index() : -1;
+}
+
void cOsdMenu::RefreshCurrent(void)
{
cOsdItem *item = Get(current);