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


Origin commit data
------------------
Branch: ni/coolstream
Commit: 39b205ebc3
Author: Thilo Graf <dbt@novatux.de>
Date: 2011-06-26 (Sun, 26 Jun 2011)

Origin message was:
------------------
*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 was generated by Migit
This commit is contained in:
2011-06-26 11:50:17 +00:00
parent 7ee4949d81
commit f0d144d4cd

View File

@@ -689,6 +689,12 @@ void CTimerList::paintItem(int pos)
uint8_t color; uint8_t color;
fb_pixel_t bgcolor; fb_pixel_t bgcolor;
int real_width=width;
if (timerlist.size() > listmaxshow)
{
real_width-=15; //scrollbar
}
if (pos & 1) if (pos & 1)
{ {
color = COL_MENUCONTENTDARK; color = COL_MENUCONTENTDARK;
@@ -699,6 +705,7 @@ void CTimerList::paintItem(int pos)
color = COL_MENUCONTENT; color = COL_MENUCONTENT;
bgcolor = COL_MENUCONTENT_PLUS_0; bgcolor = COL_MENUCONTENT_PLUS_0;
} }
frameBuffer->paintBoxRel(x, ypos, real_width, 2*fheight, bgcolor);
if (liststart + pos == selected) if (liststart + pos == selected)
{ {
@@ -706,12 +713,6 @@ void CTimerList::paintItem(int pos)
bgcolor = COL_MENUCONTENTSELECTED_PLUS_0; 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); frameBuffer->paintBoxRel(x,ypos, real_width, 2*fheight, bgcolor, RADIUS_MID);
if (liststart+pos<timerlist.size()) if (liststart+pos<timerlist.size())
{ {