summaryrefslogtreecommitdiff
path: root/epggrid.c
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-31 14:29:41 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:33:48 +0100
commitd5b3844dcc6b79b4ed5d15087bc06ce0fba442b2 (patch)
tree7247b36c90128bf7d31bcd46deec2183562fb43d /epggrid.c
parent2ed3344bb9a12ad9d6fb9c4a93603e300678a0a2 (diff)
downloadvdr-plugin-tvguide-d5b3844dcc6b79b4ed5d15087bc06ce0fba442b2.tar.gz
vdr-plugin-tvguide-d5b3844dcc6b79b4ed5d15087bc06ce0fba442b2.tar.bz2
Show vdr's switchtimer
Diffstat (limited to 'epggrid.c')
-rw-r--r--epggrid.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/epggrid.c b/epggrid.c
index 80dbc8e..47768fe 100644
--- a/epggrid.c
+++ b/epggrid.c
@@ -158,7 +158,11 @@ void cEpgGrid::drawText() {
LOCK_TIMERS_READ;
timer = Timers->GetMatch(event);
if (timer)
- if (timer->HasFlags(tfActive))
+#ifdef USE_SWITCHONLY
+ if (timer->HasFlags(tfSwitchOnly))
+ drawIcon("Switch", theme.Color(clrButtonYellow));
+#endif /* SWITCHONLY */
+ else if (timer->HasFlags(tfActive))
drawIcon("REC", theme.Color(clrButtonRed));
else
drawIcon("REC", theme.Color(clrButtonGreen));