epgplus: add progressbar for current event

Origin commit data
------------------
Branch: ni/coolstream
Commit: 44a0ec422e
Author: TangoCash <eric@loxat.de>
Date: 2017-04-10 (Mon, 10 Apr 2017)

Origin message was:
------------------
- epgplus: add progressbar for current event

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2017-04-10 10:26:21 +02:00
committed by vanhofen
parent a2923c5fda
commit 55e790df7a

View File

@@ -198,7 +198,17 @@ void EpgPlus::TimeLine::paintMark(time_t _startTime, int pduration, int px, int
this->clearMark();
// paint new mark
this->frameBuffer->paintBoxRel(px, this->y + this->font->getHeight(),
time_t azeit;
time(&azeit);
if ((azeit > _startTime) && (azeit < _startTime + pduration))
{
CProgressBar pbbar = CProgressBar(px,this->y + this->font->getHeight(),pwidth,this->font->getHeight());
pbbar.setValues((azeit - _startTime),pduration);
pbbar.setActiveColor(COL_MENUCONTENTSELECTED_PLUS_0);
pbbar.paint();
}
else
this->frameBuffer->paintBoxRel(px, this->y + this->font->getHeight(),
pwidth, this->font->getHeight() , COL_MENUCONTENTSELECTED_PLUS_0);
// display start time before mark