From 329d7da4ecb00852a980ba407cf6cabd648d1e95 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 16 Jan 2009 14:39:27 +0100 Subject: Added some missing 'const' statements to cBitmap --- osd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'osd.h') 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. -- cgit v1.2.3