mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
eventlist: fix round borders for current unselected event
Origin commit data
------------------
Commit: d937082cd5
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-04-13 (Sat, 13 Apr 2013)
Origin message was:
------------------
- eventlist: fix round borders for current unselected event
This commit is contained in:
@@ -717,12 +717,13 @@ void CNeutrinoEventList::paintItem(unsigned int pos, t_channel_id channel_idI)
|
||||
unsigned int curpos = liststart + pos;
|
||||
const char * icontype = 0;
|
||||
|
||||
if(RADIUS_LARGE)
|
||||
frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, COL_MENUCONTENT_PLUS_0, 0);
|
||||
|
||||
if (curpos==selected)
|
||||
{
|
||||
color = COL_MENUCONTENTSELECTED;
|
||||
bgcolor = COL_MENUCONTENTSELECTED_PLUS_0;
|
||||
if(RADIUS_LARGE)
|
||||
frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, COL_MENUCONTENT_PLUS_0, 0);
|
||||
}
|
||||
else if (curpos == current_event )
|
||||
{
|
||||
@@ -735,7 +736,7 @@ void CNeutrinoEventList::paintItem(unsigned int pos, t_channel_id channel_idI)
|
||||
bgcolor = COL_MENUCONTENT_PLUS_0;
|
||||
}
|
||||
|
||||
frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, bgcolor, color == COL_MENUCONTENTSELECTED ? RADIUS_LARGE : 0);
|
||||
frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, bgcolor, RADIUS_LARGE);
|
||||
|
||||
if(curpos<evtlist.size())
|
||||
{
|
||||
|
Reference in New Issue
Block a user