summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-08-26 09:58:10 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-08-26 09:58:10 +0200
commita80915ff22ec0103fb95212b0048aa73007f87eb (patch)
tree0ba0885a3deae6239f4b67ee066c8319f4856c13 /tools.h
parent6a737033ad4a4b732198a99c5f227f10278b32b6 (diff)
downloadvdr-a80915ff22ec0103fb95212b0048aa73007f87eb.tar.gz
vdr-a80915ff22ec0103fb95212b0048aa73007f87eb.tar.bz2
There can now be more than one OSD at the same time
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index bd77f857..28dbd5ea 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.107 2007/08/05 12:11:52 kls Exp $
+ * $Id: tools.h 1.108 2007/08/25 14:16:39 kls Exp $
*/
#ifndef __TOOLS_H
@@ -464,6 +464,12 @@ public:
Realloc(allocated * 4 / 2); // increase size by 50%
data[size++] = Data;
}
+ virtual void Remove(int Index)
+ {
+ if (Index < size - 1)
+ memmove(&data[Index], &data[Index + 1], (size - Index) * sizeof(T));
+ size--;
+ }
virtual void Clear(void) {}
void Sort(__compar_fn_t Compare)
{