summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-04-19 12:22:29 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-04-19 12:22:29 +0200
commit5499d5ae84f31fb6b03e2daff583c533dde63480 (patch)
treefc5a9055e0e851ff1af2d7d78d6dfa58ac678284 /osd.h
parent0a40ce6f9dd69ee747f83f2079ba1c1984178f46 (diff)
downloadvdr-5499d5ae84f31fb6b03e2daff583c533dde63480.tar.gz
vdr-5499d5ae84f31fb6b03e2daff583c533dde63480.tar.bz2
The function cOsd::GetBitmap() is now 'protected'
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/osd.h b/osd.h
index 3ece16f8..61b318d1 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 4.3 2015/03/13 15:07:53 kls Exp $
+ * $Id: osd.h 4.4 2015/04/19 12:18:25 kls Exp $
*/
#ifndef __OSD_H
@@ -785,6 +785,18 @@ protected:
///< If there are no dirty pixmaps, or if this is not a true color OSD,
///< this function returns NULL.
///< The caller must call DestroyPixmap() for the returned pixmap after use.
+//#define DEPRECATED_GETBITMAP
+#ifdef DEPRECATED_GETBITMAP
+public:
+#endif
+ cBitmap *GetBitmap(int Area);
+ ///< Returns a pointer to the bitmap for the given Area, or NULL if no
+ ///< such bitmap exists.
+ ///< If this is a true color OSD, a pointer to a dummy bitmap with 8bpp
+ ///< is returned. This is done so that skins that call this function
+ ///< in order to preset the bitmap's palette won't crash.
+ ///< Use of this function outside of derived classes is deprecated and it
+ ///< may be made 'protected' in a future version.
public:
virtual ~cOsd();
///< Shuts down the OSD.
@@ -817,14 +829,6 @@ public:
///< requested colors. By default the palette assumes there will be
///< 10 fixed colors and 10 color combinations.
///< If this is a true color OSD, this function does nothing.
- cBitmap *GetBitmap(int Area);
- ///< Returns a pointer to the bitmap for the given Area, or NULL if no
- ///< such bitmap exists.
- ///< If this is a true color OSD, a pointer to a dummy bitmap with 8bpp
- ///< is returned. This is done so that skins that call this function
- ///< in order to preset the bitmap's palette won't crash.
- ///< Use of this function outside of derived classes is deprecated and it
- ///< may be made 'protected' in a future version.
virtual const cSize &MaxPixmapSize(void) const;
///< Returns the maximum possible size of a pixmap this OSD can create.
virtual cPixmap *CreatePixmap(int Layer, const cRect &ViewPort, const cRect &DrawPort = cRect::Null);