mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
*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:
@@ -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())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user