From 74fc53e057a1a54272e4d295d04fa187e7fd8db3 Mon Sep 17 00:00:00 2001 From: seife Date: Mon, 3 Oct 2011 17:06:59 +0000 Subject: [PATCH] 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 --- src/gui/channellist.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index bb47e0f93..1acca5500 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1816,6 +1816,7 @@ void CChannelList::paintItem(int pos) uint8_t color; fb_pixel_t bgcolor; bool iscurrent = true; + bool paintbuttons = false; unsigned int curr = liststart + pos; #if 0 @@ -1833,6 +1834,7 @@ void CChannelList::paintItem(int pos) paintItem2DetailsLine (pos, curr); paintDetails(curr); frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, bgcolor, RADIUS_LARGE); + paintbuttons = true; } else { color = iscurrent ? COL_MENUCONTENT : COL_MENUCONTENTINACTIVE; bgcolor = iscurrent ? COL_MENUCONTENT_PLUS_0 : COL_MENUCONTENTINACTIVE_PLUS_0; @@ -1892,7 +1894,8 @@ void CChannelList::paintItem(int pos) frameBuffer->paintIcon(rec_icon, r_icon_x - r_icon_w - 4, ypos, fheight);//ypos + (fheight - 16)/2); //paint buttons - paintButtonBar(iscurrent); + if (paintbuttons) + paintButtonBar(iscurrent); int icon_space = r_icon_w+s_icon_w;