From 735fb20ac6bba137423eabf8eb49ec59dc207d84 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 8 Mar 2015 16:40:01 +0100 Subject: Added cOsd::MaxPixmapSize() --- osd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'osd.h') 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 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 -- cgit v1.2.3