summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-15 11:33:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-15 11:33:58 +0100
commit66c65beea7ac5c6dbc416b89b3a5800d31a0ecd7 (patch)
treefb0cc3da4effd5b327e51019e0122fe2940a5ef6 /osd.h
parentbe9a6de0ef0bb282842f57a86d00075539f4156c (diff)
downloadvdr-66c65beea7ac5c6dbc416b89b3a5800d31a0ecd7.tar.gz
vdr-66c65beea7ac5c6dbc416b89b3a5800d31a0ecd7.tar.bz2
Added cOsdProvider::OsdSizeChanged()
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/osd.h b/osd.h
index 5195f8d6..e5864c4f 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.4 2015/01/14 10:50:55 kls Exp $
+ * $Id: osd.h 3.5 2015/01/15 11:23:52 kls Exp $
*/
#ifndef __OSD_H
@@ -949,6 +949,7 @@ private:
static int oldHeight;
static double oldAspect;
static cImage *images[MAXOSDIMAGES];
+ static int osdState;
protected:
virtual cOsd *CreateOsd(int Left, int Top, uint Level) = 0;
///< Returns a pointer to a newly created cOsd object, which will be located
@@ -985,6 +986,12 @@ public:
///< font sizes accordingly. If Force is true, all settings are recalculated,
///< even if the video resolution hasn't changed since the last call to
///< this function.
+ static bool OsdSizeChanged(int &State);
+ ///< Checks if the OSD size has changed and a currently displayed OSD needs to
+ ///< be redrawn. An internal reference value is incremented on every size change
+ ///< and is compared against State when calling the method.
+ ///< OsdSizeChanged() can be called with an uninitialized State to just get
+ ///< the current value of State.
static bool SupportsTrueColor(void);
///< Returns true if the current OSD provider is able to handle a true color OSD.
static int StoreImage(const cImage &Image);