epgplus: always show a progressbar in secondary timeline ...

to avoid 'design changes' when cursor is moved left or right


Origin commit data
------------------
Branch: ni/coolstream
Commit: 56302f9eb7
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-04-10 (Mon, 10 Apr 2017)

Origin message was:
------------------
- epgplus: always show a progressbar in secondary timeline ...

to avoid 'design changes' when cursor is moved left or right


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

View File

@@ -198,18 +198,20 @@ void EpgPlus::TimeLine::paintMark(time_t _startTime, int pduration, int px, int
this->clearMark();
// 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.setActiveColor(COL_MENUCONTENTSELECTED_PLUS_0);
time_t currentTime;
time(&currentTime);
if ((currentTime > _startTime) && (currentTime < _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();
pbbar.setValues((currentTime - _startTime), pduration);
}
else
this->frameBuffer->paintBoxRel(px, this->y + this->font->getHeight(),
pwidth, this->font->getHeight() , COL_MENUCONTENTSELECTED_PLUS_0);
{
pbbar.setValues(0, pduration);
}
pbbar.paint();
// display start time before mark
std::string timeStr = EpgPlus::getTimeString(_startTime, "%H:%M");