summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2019-05-24 21:28:35 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2019-05-24 21:28:35 +0200
commit96aa4cacae85d94ff0d7892e511874f3d2b6865f (patch)
tree288f7a48e7f3f541750eb38144c9e85ca6d2f672 /osd.h
parent4242fa7f22fe31e210640971b2bf21232a23807d (diff)
downloadvdr-96aa4cacae85d94ff0d7892e511874f3d2b6865f.tar.gz
vdr-96aa4cacae85d94ff0d7892e511874f3d2b6865f.tar.bz2
The default maximum size of a cPixmap has been raised to the maximum possible value
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/osd.h b/osd.h
index 559819e3..51b1adf9 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.5 2017/11/02 14:59:19 kls Exp $
+ * $Id: osd.h 4.6 2019/05/24 21:28:35 kls Exp $
*/
#ifndef __OSD_H
@@ -833,6 +833,10 @@ public:
///< If this is a true color OSD, this function does nothing.
virtual const cSize &MaxPixmapSize(void) const;
///< Returns the maximum possible size of a pixmap this OSD can create.
+ ///< Derived classes can reimplement this function if their implementation
+ ///< of cPixmap can only provide pixmaps up to a certain size.
+ ///< The default implementation returns a cSize object of maximal size
+ ///< (INT_MAX). However, memory restrictions may still apply.
virtual cPixmap *CreatePixmap(int Layer, const cRect &ViewPort, const cRect &DrawPort = cRect::Null);
///< Creates a new true color pixmap on this OSD (see cPixmap for details).
///< The caller must not delete the returned object, it will be deleted when