mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +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)
|
void EpgPlus::ChannelEventEntry::paint(bool pisSelected, bool toggleColor)
|
||||||
{
|
{
|
||||||
if (this->channelEvent.description.empty())
|
bool selected = this->channelEvent.description.empty() ? false : pisSelected;
|
||||||
pisSelected = false;
|
|
||||||
|
|
||||||
fb_pixel_t color;
|
fb_pixel_t color;
|
||||||
fb_pixel_t bgcolor;
|
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);
|
this->frameBuffer->paintBoxRel(this->x, this->y, this->width, this->font->getHeight(), bgcolor);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user