mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- epgplus: fix selected handling for channelevents
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user