From 39b205ebc3837ce34f11656c63e83915c634d79b Mon Sep 17 00:00:00 2001 From: thilo Date: Sun, 26 Jun 2011 11:50:17 +0000 Subject: [PATCH] *neutrino timerlist: fix background of edges in timerlist Patch by GetaWay see: http://www.dbox2world.net/index.php?page=Thread&postID=132042#post132042 git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1555 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/timerlist.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index 7b9e35085..e8243a4ea 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -689,6 +689,12 @@ void CTimerList::paintItem(int pos) uint8_t color; fb_pixel_t bgcolor; + int real_width=width; + if (timerlist.size() > listmaxshow) + { + real_width-=15; //scrollbar + } + if (pos & 1) { color = COL_MENUCONTENTDARK; @@ -699,6 +705,7 @@ void CTimerList::paintItem(int pos) color = COL_MENUCONTENT; bgcolor = COL_MENUCONTENT_PLUS_0; } + frameBuffer->paintBoxRel(x, ypos, real_width, 2*fheight, bgcolor); if (liststart + pos == selected) { @@ -706,12 +713,6 @@ void CTimerList::paintItem(int pos) bgcolor = COL_MENUCONTENTSELECTED_PLUS_0; } - int real_width=width; - if (timerlist.size()>listmaxshow) - { - real_width-=15; //scrollbar - } - frameBuffer->paintBoxRel(x,ypos, real_width, 2*fheight, bgcolor, RADIUS_MID); if (liststart+pos