mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user