summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-01-16 14:39:27 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-01-16 14:39:27 +0100
commit329d7da4ecb00852a980ba407cf6cabd648d1e95 (patch)
tree5fa4aa959e793754accd72f7f771c2f661e213da /osd.h
parent0c5374ce7dbba7e0c527e61ae68e87ad5a61b20a (diff)
downloadvdr-329d7da4ecb00852a980ba407cf6cabd648d1e95.tar.gz
vdr-329d7da4ecb00852a980ba407cf6cabd648d1e95.tar.bz2
Added some missing 'const' statements to cBitmap
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/osd.h b/osd.h
index 42ebc1aa..addbf0ec 100644
--- a/osd.h
+++ b/osd.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.h 1.58 2007/10/12 14:28:44 kls Exp $
+ * $Id: osd.h 2.1 2009/01/16 14:37:03 kls Exp $
*/
#ifndef __OSD_H
@@ -231,9 +231,9 @@ public:
///< 5: vertical, rising, upper
///< 6: vertical, falling, lower
///< 7: vertical, falling, upper
- const tIndex *Data(int x, int y);
+ const tIndex *Data(int x, int y) const;
///< Returns the address of the index byte at the given coordinates.
- tColor GetColor(int x, int y) { return Color(*Data(x, y)); }
+ tColor GetColor(int x, int y) const { return Color(*Data(x, y)); }
///< Returns the color at the given coordinates.
void ReduceBpp(const cPalette &Palette);
///< Reduces the color depth of the bitmap to that of the given Palette.