diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-04-03 12:49:56 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-04-03 12:49:56 +0200 |
commit | e622854789ff8a521dc837379147b6e851d52875 (patch) | |
tree | d71cfde84e762e40d3413576e94b073afff5e2b3 /vdr.c | |
parent | 792b9dc45fd68f6f0f0db4073982303171dbfb08 (diff) | |
download | vdr-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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; } } |