mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
channellist: avoid unnecessary paint of buttonbar
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1740 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1816,6 +1816,7 @@ void CChannelList::paintItem(int pos)
|
|||||||
uint8_t color;
|
uint8_t color;
|
||||||
fb_pixel_t bgcolor;
|
fb_pixel_t bgcolor;
|
||||||
bool iscurrent = true;
|
bool iscurrent = true;
|
||||||
|
bool paintbuttons = false;
|
||||||
unsigned int curr = liststart + pos;
|
unsigned int curr = liststart + pos;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@@ -1833,6 +1834,7 @@ void CChannelList::paintItem(int pos)
|
|||||||
paintItem2DetailsLine (pos, curr);
|
paintItem2DetailsLine (pos, curr);
|
||||||
paintDetails(curr);
|
paintDetails(curr);
|
||||||
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, RADIUS_LARGE);
|
frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, RADIUS_LARGE);
|
||||||
|
paintbuttons = true;
|
||||||
} else {
|
} else {
|
||||||
color = iscurrent ? COL_MENUCONTENT : COL_MENUCONTENTINACTIVE;
|
color = iscurrent ? COL_MENUCONTENT : COL_MENUCONTENTINACTIVE;
|
||||||
bgcolor = iscurrent ? COL_MENUCONTENT_PLUS_0 : COL_MENUCONTENTINACTIVE_PLUS_0;
|
bgcolor = iscurrent ? COL_MENUCONTENT_PLUS_0 : COL_MENUCONTENTINACTIVE_PLUS_0;
|
||||||
@@ -1892,6 +1894,7 @@ void CChannelList::paintItem(int pos)
|
|||||||
frameBuffer->paintIcon(rec_icon, r_icon_x - r_icon_w - 4, ypos, fheight);//ypos + (fheight - 16)/2);
|
frameBuffer->paintIcon(rec_icon, r_icon_x - r_icon_w - 4, ypos, fheight);//ypos + (fheight - 16)/2);
|
||||||
|
|
||||||
//paint buttons
|
//paint buttons
|
||||||
|
if (paintbuttons)
|
||||||
paintButtonBar(iscurrent);
|
paintButtonBar(iscurrent);
|
||||||
|
|
||||||
int icon_space = r_icon_w+s_icon_w;
|
int icon_space = r_icon_w+s_icon_w;
|
||||||
|
Reference in New Issue
Block a user