diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2010-06-18 22:59:14 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2010-06-18 22:59:14 +0200 |
commit | f5f1d102c99ef7b3f1e0aec6463a8c17d3262bad (patch) | |
tree | 8467e6ee4a260ff1c2a033838f72a5a4a8ea088b /glcdskin/config.c | |
parent | 4a7aeebfab185320694c88d6d3ff5a1537f94660 (diff) | |
download | graphlcd-base-f5f1d102c99ef7b3f1e0aec6463a8c17d3262bad.tar.gz graphlcd-base-f5f1d102c99ef7b3f1e0aec6463a8c17d3262bad.tar.bz2 |
text-object: added support for alternative text / alternative condition; bug fixes: annoying update problems should now be fixed; bug fix in brightness update detection; overloadable method for getting a timestamp that is compliant to VDR timestamp (cSkinConfig::Now(), will be overloaded in vdr-plugin-graphlcd to return the value of cTimeMs::Now()); serdisp-driver: call rotate only if UpsideDown is set
Diffstat (limited to 'glcdskin/config.c')
-rw-r--r-- | glcdskin/config.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/glcdskin/config.c b/glcdskin/config.c index 518218e..c733427 100644 --- a/glcdskin/config.c +++ b/glcdskin/config.c @@ -1,6 +1,8 @@ #include "config.h" #include "type.h" +#include <sys/time.h> + namespace GLCD { @@ -39,4 +41,13 @@ int cSkinConfig::GetTabPosition(int Index, int MaxWidth, const cFont & Font) return 0; } +uint64_t cSkinConfig::Now(void) +{ + struct timeval tv; + + gettimeofday(&tv, 0); + return (uint64_t)(tv.tv_sec * 1000 + tv.tv_usec / 1000); +} + + } // end of namespace |