mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
epgplus: simplify detailsline handling; fix coords in hide()
Origin commit data
------------------
Branch: ni/coolstream
Commit: 01e0ae3696
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-04-08 (Sat, 08 Apr 2017)
Origin message was:
------------------
- epgplus: simplify detailsline handling; fix coords in hide()
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -425,14 +425,6 @@ void EpgPlus::ChannelEntry::paint(bool isSelected, time_t _selectedTime)
|
||||
toggleColor = !toggleColor;
|
||||
}
|
||||
|
||||
// kill detailsline
|
||||
if (detailsLine)
|
||||
{
|
||||
detailsLine->kill();
|
||||
delete detailsLine;
|
||||
detailsLine = NULL;
|
||||
}
|
||||
|
||||
// paint detailsline
|
||||
if (isSelected)
|
||||
{
|
||||
@@ -441,9 +433,9 @@ void EpgPlus::ChannelEntry::paint(bool isSelected, time_t _selectedTime)
|
||||
int yPosBottom = this->footer->y + this->footer->getUsedHeight()/2;
|
||||
|
||||
if (detailsLine == NULL)
|
||||
{
|
||||
detailsLine = new CComponentsDetailsLine(xPos, yPosTop, yPosBottom, this->font->getHeight()/2, this->footer->getUsedHeight() - RADIUS_LARGE*2);
|
||||
}
|
||||
detailsLine = new CComponentsDetailsLine();
|
||||
|
||||
detailsLine->setDimensionsAll(xPos, yPosTop, yPosBottom, this->font->getHeight()/2, this->footer->getUsedHeight() - RADIUS_LARGE*2);
|
||||
detailsLine->paint(false);
|
||||
}
|
||||
}
|
||||
@@ -1273,7 +1265,7 @@ EpgPlus::TCChannelEventEntries::const_iterator EpgPlus::getSelectedEvent() const
|
||||
|
||||
void EpgPlus::hide()
|
||||
{
|
||||
this->frameBuffer->paintBackgroundBoxRel(this->usableScreenX, this->usableScreenY, this->usableScreenWidth, this->usableScreenHeight);
|
||||
this->frameBuffer->paintBackgroundBoxRel(this->usableScreenX - DETAILSLINE_WIDTH, this->usableScreenY, DETAILSLINE_WIDTH + this->usableScreenWidth, this->usableScreenHeight);
|
||||
}
|
||||
|
||||
void EpgPlus::paintChannelEntry(int position)
|
||||
|
Reference in New Issue
Block a user