summaryrefslogtreecommitdiff
path: root/epggrid.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-03-28 14:59:16 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-03-28 18:20:20 +0100
commit7ca598f64e22d7ba776282435694d4d21c65dbed (patch)
treed90a27ac7d7764de5a7b1a5233a1ab565c5af5b0 /epggrid.c
parent4474b5f5b5380f6cc7588d95106a935e14398e9f (diff)
downloadvdr-plugin-tvguide-7ca598f64e22d7ba776282435694d4d21c65dbed.tar.gz
vdr-plugin-tvguide-7ca598f64e22d7ba776282435694d4d21c65dbed.tar.bz2
Compile again with VDR < 2.3.0
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 546c156..9236ac0 100644
--- a/epggrid.c
+++ b/epggrid.c
@@ -145,12 +145,16 @@ void cEpgGrid::drawText() {
drawIcon("Switch", theme.Color(clrButtonYellow));
if (hasTimer) {
const cTimer *timer = NULL;
+#if VDRVERSNUM >= 20301
{
LOCK_TIMERS_READ;
timer = Timers->GetMatch(event);
}
+#else
+ timer = Timers.GetMatch(event);
+#endif
if (timer)
-#ifdef USE_SWITCHONLY
+#ifdef SWITCHONLYPATCH
if (timer->HasFlags(tfSwitchOnly))
drawIcon("Switch", theme.Color(clrButtonYellow));
else if (timer->HasFlags(tfActive))