diff options
Diffstat (limited to 'displaymenu.c')
-rw-r--r-- | displaymenu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/displaymenu.c b/displaymenu.c index 2368d145..085ae1b0 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -2038,6 +2038,9 @@ bool cFlatDisplayMenu::SetItemRecording(const cRecording *Recording, int Index, double FrameSeen = (double)FrameResume / (double)FrameTotal; cString SeenIcon; + double seenTreshold = Config.MenuItemRecordingSeenTreshold * 100.0; + //dsyslog("Config.MenuItemRecordingSeenTreshold: %.2f\n", seenTreshold ); + if( FrameSeen < 0.1 ) SeenIcon = "recording_seen_0"; else if( FrameSeen < 0.2 ) @@ -2061,6 +2064,9 @@ bool cFlatDisplayMenu::SetItemRecording(const cRecording *Recording, int Index, else SeenIcon = "recording_seen_10"; + if( FrameSeen >= seenTreshold ) + SeenIcon = "recording_seen_10"; + cImage *imgSeen = NULL; if( Current ) { cString SeenIconCur = cString::sprintf("%s_cur", *SeenIcon); |