mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +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,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