summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-03-10 19:57:03 +0100
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-03-10 19:57:03 +0100
commit556aff473336264b80f77c89bb617f34545e43c8 (patch)
tree3e75e69eccd65f30c0188e2a7295655ee6279be7
parentab2bacc3d88f1a33720b134637b171534d5a7cdd (diff)
downloadskin-flatplus-556aff473336264b80f77c89bb617f34545e43c8.tar.gz
skin-flatplus-556aff473336264b80f77c89bb617f34545e43c8.tar.bz2
fix epgsearch progressbar in SetItemEvent
-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)