summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-05-12 14:46:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-05-12 14:46:46 +0200
commit2cc450a67cd8c5bef3f0b568735e5bb7efde660a (patch)
tree85a6a3629a5171903663f29606e747f90d609892 /osd.c
parent97a5ac7cba7eccbabc757fc46d62bbb3786b94fc (diff)
downloadvdr-2cc450a67cd8c5bef3f0b568735e5bb7efde660a.tar.gz
vdr-2cc450a67cd8c5bef3f0b568735e5bb7efde660a.tar.bz2
Added 'insert' capabilities to cList
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 b23796a7..6feeaa87 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/05 12:00:00 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();
}