summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY4
-rw-r--r--osd.h22
2 files changed, 17 insertions, 9 deletions
diff --git a/HISTORY b/HISTORY
index 07609dd3..4eec9061 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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.
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);