summaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-05 13:55:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-05 13:55:58 +0100
commit7b97eb6e97d2156298bb06b0dfd13a12c68c525c (patch)
tree083314746cc5b635f0940e6da620af0620b10e28 /font.h
parent978462168c1326ffe60a434dee9e9ee642a62695 (diff)
downloadvdr-7b97eb6e97d2156298bb06b0dfd13a12c68c525c.tar.gz
vdr-7b97eb6e97d2156298bb06b0dfd13a12c68c525c.tar.bz2
Made all font and image data 'const'
Diffstat (limited to 'font.h')
-rw-r--r--font.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/font.h b/font.h
index b5a21a3a..2a104294 100644
--- a/font.h
+++ b/font.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: font.h 1.11 2005/03/19 15:51:19 kls Exp $
+ * $Id: font.h 1.12 2006/02/05 13:46:36 kls Exp $
*/
#ifndef __FONT_H
@@ -43,9 +43,9 @@ private:
const tCharData *data[NUMCHARS];
int height;
public:
- cFont(void *Data);
+ cFont(const void *Data);
virtual ~cFont() {}
- void SetData(void *Data);
+ void SetData(const void *Data);
virtual int Width(unsigned char c) const { return data[c]->width; }
///< Returns the width of the given character.
virtual int Width(const char *s) const;
@@ -59,7 +59,7 @@ public:
const tCharData *CharData(unsigned char c) const { return data[c]; }
static bool SetCode(const char *Code);
static void SetCode(eDvbCode Code);
- static void SetFont(eDvbFont Font, void *Data = NULL);
+ static void SetFont(eDvbFont Font, const void *Data = NULL);
static const cFont *GetFont(eDvbFont Font);
};