mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- epgplus: add progressbar for current event
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user