summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-04-03 12:49:56 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-04-03 12:49:56 +0200
commite622854789ff8a521dc837379147b6e851d52875 (patch)
treed71cfde84e762e40d3413576e94b073afff5e2b3 /vdr.c
parent792b9dc45fd68f6f0f0db4073982303171dbfb08 (diff)
downloadvdr-e622854789ff8a521dc837379147b6e851d52875.tar.gz
vdr-e622854789ff8a521dc837379147b6e851d52875.tar.bz2
cOsdMenu::Display() now checks whether the OSD size has changed and if so calls SetDisplayMenu()
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/vdr.c b/vdr.c
index 5b598f9c..925f35fb 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 4.11 2017/03/25 14:20:30 kls Exp $
+ * $Id: vdr.c 4.12 2017/04/03 12:35:37 kls Exp $
*/
#include <getopt.h>
@@ -986,6 +986,11 @@ int main(int argc, char *argv[])
static time_t lastOsdSizeUpdate = 0;
if (Now != lastOsdSizeUpdate) { // once per second
cOsdProvider::UpdateOsdSize();
+ static int OsdState = 0;
+ if (cOsdProvider::OsdSizeChanged(OsdState)) {
+ if (cOsdMenu *OsdMenu = dynamic_cast<cOsdMenu *>(Menu))
+ OsdMenu->Display();
+ }
lastOsdSizeUpdate = Now;
}
}