diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-03-10 19:57:03 +0100 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-03-10 19:57:03 +0100 |
commit | 556aff473336264b80f77c89bb617f34545e43c8 (patch) | |
tree | 3e75e69eccd65f30c0188e2a7295655ee6279be7 | |
parent | ab2bacc3d88f1a33720b134637b171534d5a7cdd (diff) | |
download | skin-flatplus-556aff473336264b80f77c89bb617f34545e43c8.tar.gz skin-flatplus-556aff473336264b80f77c89bb617f34545e43c8.tar.bz2 |
fix epgsearch progressbar in SetItemEvent
-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) |