*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
This commit is contained in:
thilo
2011-06-26 11:50:17 +00:00
parent ba596cbc4d
commit 39b205ebc3

View File

@@ -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<timerlist.size())
{