summaryrefslogtreecommitdiff
path: root/epggrid.c
diff options
context:
space:
mode:
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))