summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-03-08 16:40:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-03-08 16:40:01 +0100
commit735fb20ac6bba137423eabf8eb49ec59dc207d84 (patch)
treea3a452252e26773e59b0c0468cc8a87ff2853e45 /osd.h
parenta429eefbe723a992edff8a9d60502fa62f01b71e (diff)
downloadvdr-735fb20ac6bba137423eabf8eb49ec59dc207d84.tar.gz
vdr-735fb20ac6bba137423eabf8eb49ec59dc207d84.tar.bz2
Added cOsd::MaxPixmapSize()
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/osd.h b/osd.h
index 9ef32ac7..6a2149e2 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 3.6 2015/02/11 09:48:02 kls Exp $
+ * $Id: osd.h 4.1 2015/03/08 13:54:09 kls Exp $
*/
#ifndef __OSD_H
@@ -722,6 +722,7 @@ class cOsd {
private:
static int osdLeft, osdTop, osdWidth, osdHeight;
static cVector<cOsd *> Osds;
+ static cSize maxPixmapSize;
static cMutex mutex;
bool isTrueColor;
cBitmap *savedBitmap;
@@ -820,6 +821,8 @@ public:
///< 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);
///< 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