summaryrefslogtreecommitdiff
path: root/osdbase.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-07-13 10:24:28 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-07-13 10:24:28 +0200
commitd5208be84b6d604051f04b024ad65c004006fc50 (patch)
tree000033660ffcef1204fc0abdcfa632199cee9162 /osdbase.h
parent5122a2d12d4186108a3109b11da96beb93163312 (diff)
downloadvdr-d5208be84b6d604051f04b024ad65c004006fc50.tar.gz
vdr-d5208be84b6d604051f04b024ad65c004006fc50.tar.bz2
Added direct access to the index data of cPalette (needed for displaying SPUs)
Diffstat (limited to 'osdbase.h')
-rw-r--r--osdbase.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/osdbase.h b/osdbase.h
index a20dfc46..a73b1c47 100644
--- a/osdbase.h
+++ b/osdbase.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osdbase.h 1.2 2002/05/18 12:38:17 kls Exp $
+ * $Id: osdbase.h 1.3 2002/07/13 10:16:18 kls Exp $
*/
#ifndef __OSDBASE_H
@@ -52,6 +52,7 @@ protected:
typedef unsigned char tIndexes[MAXNUMCOLORS];
public:
cPalette(int Bpp);
+ void SetColor(int Index, eDvbColor Color);
int Index(eDvbColor Color);
void Reset(void);
const eDvbColor *Colors(int &FirstColor, int &LastColor);
@@ -62,7 +63,6 @@ class cBitmap : public cPalette {
private:
cFont *font;
eDvbFont fontType;
- void SetIndex(int x, int y, char Index);
char *bitmap;
bool clearWithBackground;
protected:
@@ -74,6 +74,7 @@ public:
bool ClearWithBackground(void) { return clearWithBackground; }
eDvbFont SetFont(eDvbFont Font);
bool Dirty(int &x1, int &y1, int &x2, int &y2);
+ void SetIndex(int x, int y, char Index);
void SetPixel(int x, int y, eDvbColor Color);
void SetBitmap(int x, int y, const cBitmap &Bitmap);
int Width(void) { return width; }