diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-04-19 12:22:29 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-04-19 12:22:29 +0200 |
commit | 5499d5ae84f31fb6b03e2daff583c533dde63480 (patch) | |
tree | fc5a9055e0e851ff1af2d7d78d6dfa58ac678284 | |
parent | 0a40ce6f9dd69ee747f83f2079ba1c1984178f46 (diff) | |
download | vdr-5499d5ae84f31fb6b03e2daff583c533dde63480.tar.gz vdr-5499d5ae84f31fb6b03e2daff583c533dde63480.tar.bz2 |
The function cOsd::GetBitmap() is now 'protected'
-rw-r--r-- | HISTORY | 4 | ||||
-rw-r--r-- | osd.h | 22 |
2 files changed, 17 insertions, 9 deletions
@@ -8640,3 +8640,7 @@ Video Disk Recorder Revision History #define DEPRECATED_VIDEOSYSTEM in device.h. If a plugin doesn't compile with this version of VDR, you can uncomment this line as a quick workaround. In the long run the plugin will need to be adapted. +- The function cOsd::GetBitmap() is now 'protected'. If a plugin doesn't compile with + this version of VDR, you can uncomment the line + //#define DEPRECATED_GETBITMAP + in osd.h as a quick workaround. In the long run the plugin will need to be adapted. @@ -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); |