summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/osd.c b/osd.c
index 1116784..6feeaa8 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.24 2002/05/01 11:53:24 kls Exp $
+ * $Id: osd.c 1.25 2002/05/12 11:38:39 kls Exp $
*/
#include "osd.h"
@@ -161,9 +161,16 @@ void cOsdMenu::Del(int Index)
first--;
}
-void cOsdMenu::Add(cOsdItem *Item, bool Current)
+void cOsdMenu::Add(cOsdItem *Item, bool Current, cOsdItem *After)
{
- cList<cOsdItem>::Add(Item);
+ cList<cOsdItem>::Add(Item, After);
+ if (Current)
+ current = Item->Index();
+}
+
+void cOsdMenu::Ins(cOsdItem *Item, bool Current, cOsdItem *Before)
+{
+ cList<cOsdItem>::Ins(Item, Before);
if (Current)
current = Item->Index();
}