diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-05-03 14:15:21 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-05-03 14:15:21 +0200 |
commit | f161d1b2fe69d4fcfac37581fa60b5d9ce5ded11 (patch) | |
tree | ff65b9bcb3041e0733ebb1c59bac1203002c5903 /vdr.c | |
parent | 34b3d467849d0e8192c9cfbd65a630973f602863 (diff) | |
download | vdr-f161d1b2fe69d4fcfac37581fa60b5d9ce5ded11.tar.gz vdr-f161d1b2fe69d4fcfac37581fa60b5d9ce5ded11.tar.bz2 |
OSD sizes in percent; automatic update of OSD size
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.cadsoft.de/vdr * - * $Id: vdr.c 2.7 2009/04/05 13:21:46 kls Exp $ + * $Id: vdr.c 2.8 2009/05/03 10:33:06 kls Exp $ */ #include <getopt.h> @@ -747,6 +747,12 @@ int main(int argc, char *argv[]) CheckHasProgramme = false; } } + // Update the OSD size: + { + static time_t lastOsdSizeUpdate = 0; + if (Now != lastOsdSizeUpdate) // once per second + cOsdProvider::UpdateOsdSize(); + } // Restart the Watchdog timer: if (WatchdogTimeout > 0) { int LatencyTime = WatchdogTimeout - alarm(WatchdogTimeout); |