summaryrefslogtreecommitdiff
path: root/lcarsng.c
diff options
context:
space:
mode:
authorKarl Melscher <kamel5@gmx.net>2018-03-07 16:18:24 +0100
committerKarl Melscher <kamel5@gmx.net>2018-03-07 16:18:24 +0100
commit9714d795b17619eb96df260c8a24d33a185579e4 (patch)
tree216403777a90b7e707b964a81429f08f0e2ab2c8 /lcarsng.c
parentbdb6c6c06894d308765c31aa1a84c17b7d799ec4 (diff)
downloadskin-lcarsng-9714d795b17619eb96df260c8a24d33a185579e4.tar.gz
skin-lcarsng-9714d795b17619eb96df260c8a24d33a185579e4.tar.bz2
New NumRecordingsInPath
Diffstat (limited to 'lcarsng.c')
-rw-r--r--lcarsng.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/lcarsng.c b/lcarsng.c
index b79a1b7..58c3adc 100644
--- a/lcarsng.c
+++ b/lcarsng.c
@@ -1797,26 +1797,30 @@ void cLCARSNGDisplayMenu::Clear(void)
void cLCARSNGDisplayMenu::SetTitle(const char *Title)
{
const cFont *font = cFont::GetFont(fontOsd);
- int i = 0;
+#ifdef USE_WAREAGLEICON
+ int NumRecordingsInPath = 0;
{
LOCK_RECORDINGS_READ;
- i = Recordings->Count();
+ NumRecordingsInPath = Recordings->GetNumRecordingsInPath(cMenuRecordings::GetActualPath());
}
+#endif /* WAREAGLEICON */
switch (MenuCategory()) {
case mcMain:
case mcSetup:
case mcCommand:
case mcChannel:
break;
- case mcSchedule:
- case mcScheduleNow:
- case mcScheduleNext:
- case mcEvent:
case mcRecording:
- osd->DrawText(xm04, ys00, cString::sprintf("%i", i), Theme.Color(clrMenuFrameFg), frameColor, font, xm08 - xm04 - 1, lineHeight, taBottom | taRight);
+#ifdef USE_WAREAGLEICON
+ osd->DrawText(xm04, ys00, cString::sprintf("%i", NumRecordingsInPath), Theme.Color(clrMenuFrameFg), frameColor, font, xm08 - xm04 - 1, lineHeight, taBottom | taRight);
+#endif /* WAREAGLEICON */
case mcRecordingInfo:
case mcRecordingEdit:
case mcTimerEdit:
+ case mcSchedule:
+ case mcScheduleNow:
+ case mcScheduleNext:
+ case mcEvent:
osd->DrawRectangle(xs00 - Gap, ys00, xs00, ys01 - 1, Theme.Color(clrBackground));
osd->DrawText(xs00, ys00, Title, Theme.Color(clrMenuFrameFg), frameColor, font, xs11 - xs00 - 1, lineHeight, taBottom | taRight);
osd->DrawRectangle(xs12, ys00, xs13 - 1, ys01 - 1, frameColor);