- epgplus: add progressbar for current event

This commit is contained in:
Eric Loxat
2017-04-10 10:26:21 +02:00
committed by svenhoefer
parent 0b44c162b4
commit 44a0ec422e

View File

@@ -198,6 +198,16 @@ void EpgPlus::TimeLine::paintMark(time_t _startTime, int pduration, int px, int
this->clearMark(); this->clearMark();
// paint new mark // paint new mark
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(), this->frameBuffer->paintBoxRel(px, this->y + this->font->getHeight(),
pwidth, this->font->getHeight() , COL_MENUCONTENTSELECTED_PLUS_0); pwidth, this->font->getHeight() , COL_MENUCONTENTSELECTED_PLUS_0);