summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY2
-rw-r--r--displaymenu.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index ba003c95..5828e9c5 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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)