diff options
author | Karl Melscher <kamel5@gmx.net> | 2018-03-07 16:18:24 +0100 |
---|---|---|
committer | Karl Melscher <kamel5@gmx.net> | 2018-03-07 16:18:24 +0100 |
commit | 9714d795b17619eb96df260c8a24d33a185579e4 (patch) | |
tree | 216403777a90b7e707b964a81429f08f0e2ab2c8 /lcarsng.c | |
parent | bdb6c6c06894d308765c31aa1a84c17b7d799ec4 (diff) | |
download | skin-lcarsng-9714d795b17619eb96df260c8a24d33a185579e4.tar.gz skin-lcarsng-9714d795b17619eb96df260c8a24d33a185579e4.tar.bz2 |
New NumRecordingsInPath
Diffstat (limited to 'lcarsng.c')
-rw-r--r-- | lcarsng.c | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -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); |