diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-04 16:14:10 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-04 18:13:47 +0200 |
commit | 8f894930513b154db19fa1548f28b60d7e5c46e2 (patch) | |
tree | 1da2da93045518c884e39bf6a667cc8f04c11cbd /displaymenu.c | |
parent | 78412dd9c4420e60fdb0c5e848d87660d2d1b95e (diff) | |
download | skin-lcarsng-8f894930513b154db19fa1548f28b60d7e5c46e2.tar.gz skin-lcarsng-8f894930513b154db19fa1548f28b60d7e5c46e2.tar.bz2 |
Use NUMRECORDINGSINPATH
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/displaymenu.c b/displaymenu.c index 3490ebb..2aeb134 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -483,12 +483,14 @@ void cLCARSNGDisplayMenu::DrawNumRecordingsInPath(void) { const cFont *font = cFont::GetFont(fontOsd); int NumRecordingsInPath = 0; +#if APIVERSNUM > 20301 +#ifdef NUMRECORDINGSINPATH { -#if APIVERSNUM > 20300 LOCK_RECORDINGS_READ; -#endif NumRecordingsInPath = Recordings->GetNumRecordingsInPath(cMenuRecordings::GetActualPath()); } +#endif +#endif if (NumRecordingsInPath > 0) osd->DrawText(xm04, ys00, cString::sprintf("%i", NumRecordingsInPath), Theme.Color(clrMenuFrameFg), frameColor, font, xm08 - xm04 - 1, lineHeight, taBottom | taRight | taBorder); } |