mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
epgplus: add missing round corner to selected item
Origin commit data
------------------
Branch: ni/coolstream
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
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user