diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-11 11:28:11 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-11 11:44:39 +0200 |
commit | 0766d679806e1ed098f562672e88ef324c3cd680 (patch) | |
tree | 727689519e3f2a6b098f7dc1337cb639f44d3321 /timer.c | |
parent | 3513f82a8c4e01bc375453c9dcb8001b7ea82cd2 (diff) | |
download | vdr-plugin-tvguide-0766d679806e1ed098f562672e88ef324c3cd680.tar.gz vdr-plugin-tvguide-0766d679806e1ed098f562672e88ef324c3cd680.tar.bz2 |
Change tvguideConfig to Config
Diffstat (limited to 'timer.c')
-rw-r--r-- | timer.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -18,9 +18,9 @@ void cMyTime::Now() { t = time(0); tStart = t; tStart = GetRounded(); - if (tvguideConfig.displayMode == eVertical) { + if (config.displayMode == eVertical) { tEnd = tStart + (geoManager.osdHeight - geoManager.statusHeaderHeight - geoManager.channelHeaderHeight - geoManager.channelGroupsHeight - geoManager.footerHeight)/geoManager.minutePixel*60; - } else if (tvguideConfig.displayMode == eHorizontal) { + } else if (config.displayMode == eHorizontal) { tEnd = tStart + (geoManager.osdWidth - geoManager.channelHeaderWidth - geoManager.channelGroupsWidth)/geoManager.minutePixel*60; } } @@ -41,9 +41,9 @@ bool cMyTime::DelStep(int step) { void cMyTime::SetTime(time_t newTime) { tStart = newTime; - if (tvguideConfig.displayMode == eVertical) { + if (config.displayMode == eVertical) { tEnd = tStart + (geoManager.osdHeight - geoManager.statusHeaderHeight - geoManager.channelHeaderHeight - geoManager.channelGroupsHeight - geoManager.footerHeight)/geoManager.minutePixel*60; - } else if (tvguideConfig.displayMode == eHorizontal) { + } else if (config.displayMode == eHorizontal) { tEnd = tStart + (geoManager.osdWidth - geoManager.channelHeaderWidth - geoManager.channelGroupsWidth)/geoManager.minutePixel*60; } } @@ -84,9 +84,9 @@ cString cMyTime::GetCurrentTime() { t = time(0); tm *st = localtime(&t); //snprintf(text, sizeof(text), "%d:%02d", st->tm_hour, st->tm_min); - if (tvguideConfig.timeFormat == e12Hours) { + if (config.timeFormat == e12Hours) { strftime(buf, sizeof(buf), "%I:%M %p", st); - } else if (tvguideConfig.timeFormat == e24Hours) + } else if (config.timeFormat == e24Hours) strftime(buf, sizeof(buf), "%H:%M", st); return buf; |