epgplus: fix selected handling for channelevents

Origin commit data
------------------
Commit: 25e56bf5df
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-04-10 (Mon, 10 Apr 2017)

Origin message was:
------------------
- epgplus: fix selected handling for channelevents
This commit is contained in:
vanhofen
2017-04-10 21:43:01 +02:00
parent 34b8a0cddb
commit 6681eb04ee

View File

@@ -309,13 +309,12 @@ bool EpgPlus::ChannelEventEntry::isSelected(time_t _selectedTime) const
void EpgPlus::ChannelEventEntry::paint(bool pisSelected, bool toggleColor)
{
if (this->channelEvent.description.empty())
pisSelected = false;
bool selected = this->channelEvent.description.empty() ? false : pisSelected;
fb_pixel_t color;
fb_pixel_t bgcolor;
getItemColors(color, bgcolor, pisSelected, false, toggleColor);
getItemColors(color, bgcolor, selected, false, toggleColor);
this->frameBuffer->paintBoxRel(this->x, this->y, this->width, this->font->getHeight(), bgcolor);