From e54e112b246e932f143c5c0043a9a72f5097b100 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 10 Apr 2017 12:54:58 +0200 Subject: [PATCH] - epgplus: add missing round corner to selected item --- src/gui/epgplus.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/epgplus.cpp b/src/gui/epgplus.cpp index 293bb5f1b..7fb835335 100644 --- a/src/gui/epgplus.cpp +++ b/src/gui/epgplus.cpp @@ -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);