diff options
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | displaymenu.c | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -2,6 +2,8 @@ VDR Plugin 'skinflatplus' Revision History --------------------------------------- 2014-XX-XX: Version 0.2.1 +- [fix] epgsearch progessbar in SetItemEvent, if start time is after now (2 minutes tolerance) +- [add] theme color clrMenuItemExtraTextCurrentFont 2014-02-22: Version 0.2.0 - [fix] load user decor settings diff --git a/displaymenu.c b/displaymenu.c index 0d55c9c6..14e54377 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -1232,9 +1232,10 @@ bool cFlatDisplayMenu::SetItemEvent(const cEvent *Event, int Index, bool Current if( Event ) { int PBWidth = menuItemWidth/20; time_t now = time(NULL); - if( (now >= Event->StartTime()) && (now <= Event->EndTime()) ) { + + if( (now >= (Event->StartTime() - 2*60) ) ) { int total = Event->EndTime() - Event->StartTime(); - if( total > 0 ) { + if( total >= 0 ) { // calculate progress bar double progress = (int)roundf( (float)(time(NULL) - Event->StartTime()) / (float) (Event->Duration()) * 100.0); if(progress < 0) |