From 3ee9d53fcac3c0da1992e76f69cd165531ca8282 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 13 Apr 2013 09:31:39 +0200 Subject: [PATCH] - eventlist: fix round borders for current unselected event Conflicts: src/gui/eventlist.cpp --- src/gui/eventlist.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index cb52b88ce..1d9d461e2 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -689,13 +689,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 ) { @@ -708,7 +708,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