epgplus: add missing round corner to selected item

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

Origin message was:
------------------
- epgplus: add missing round corner to selected item
This commit is contained in:
vanhofen
2017-04-10 12:54:58 +02:00
parent c51d3214ec
commit 11d332f464

View File

@@ -417,9 +417,11 @@ void EpgPlus::ChannelEntry::paint(bool isSelected, time_t _selectedTime)
fb_pixel_t color;
fb_pixel_t bgcolor;
int radius = isSelected ? RADIUS_MID : RADIUS_NONE;
getItemColors(color, bgcolor, isSelected);
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, radius, CORNER_LEFT);
this->font->RenderString(this->x + OFFSET_INNER_MID, this->y + this->font->getHeight(),
this->width - 2*OFFSET_INNER_MID, this->displayName, color);