summaryrefslogtreecommitdiff
path: root/osdbase.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-08-25 10:05:24 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-08-25 10:05:24 +0200
commite63b279d967564b847f19dbd694dab9a577acfb1 (patch)
tree8b77cadd84dc88a174daa3a1dd051991be7edb6d /osdbase.c
parentc6ed4da7a0e8d9bf5664ba2c4282e3c6cb6d7932 (diff)
downloadvdr-e63b279d967564b847f19dbd694dab9a577acfb1.tar.gz
vdr-e63b279d967564b847f19dbd694dab9a577acfb1.tar.bz2
Added cPalette::AllColors() for plugins that need to get the color entries of a cPalette
Diffstat (limited to 'osdbase.c')
-rw-r--r--osdbase.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/osdbase.c b/osdbase.c
index 70e11bfa..e16b27b0 100644
--- a/osdbase.c
+++ b/osdbase.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osdbase.c 1.6 2002/08/11 11:47:21 kls Exp $
+ * $Id: osdbase.c 1.7 2002/08/25 10:02:36 kls Exp $
*/
#include "osdbase.h"
@@ -74,7 +74,7 @@ void cPalette::Reset(void)
full = false;
}
-const eDvbColor *cPalette::Colors(int &FirstColor, int &LastColor)
+const eDvbColor *cPalette::NewColors(int &FirstColor, int &LastColor)
{
for (FirstColor = 0; FirstColor < numColors; FirstColor++) {
if (!fetched[FirstColor]) {
@@ -87,6 +87,12 @@ const eDvbColor *cPalette::Colors(int &FirstColor, int &LastColor)
return NULL;
}
+const eDvbColor *cPalette::AllColors(int &NumColors)
+{
+ NumColors = numColors;
+ return numColors ? color : NULL;
+}
+
void cPalette::Take(const cPalette &Palette, tIndexes *Indexes)
{
for (int i = 0; i < Palette.numColors; i++) {