From c8beddcb8073a00194f2e790ebca23124148d32b Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 4 May 2013 12:18:21 +0200 Subject: [PATCH] CNeutrinoEventList: Skip unnecessary drawing of the background Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/1d2ac01eccbcef2c4763e29de040fd522510f98a Author: Jacek Jendrzej Date: 2013-05-04 (Sat, 04 May 2013) Origin message was: ------------------ * CNeutrinoEventList: Skip unnecessary drawing of the background ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/eventlist.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/eventlist.cpp b/src/gui/eventlist.cpp index 5803707a2..697e85b34 100644 --- a/src/gui/eventlist.cpp +++ b/src/gui/eventlist.cpp @@ -703,9 +703,7 @@ void CNeutrinoEventList::paintItem(unsigned int pos, t_channel_id channel_idI) uint8_t color; fb_pixel_t bgcolor; int ypos = y+ theight+0 + pos*fheight; - std::string datetime1_str, datetime2_str, duration_str; unsigned int curpos = liststart + pos; - const char * icontype = 0; if(RADIUS_LARGE) frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, COL_MENUCONTENT_PLUS_0, 0); @@ -726,10 +724,12 @@ void CNeutrinoEventList::paintItem(unsigned int pos, t_channel_id channel_idI) bgcolor = COL_MENUCONTENT_PLUS_0; } - frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, bgcolor, RADIUS_LARGE); + if (!RADIUS_LARGE || (curpos==selected && RADIUS_LARGE) || (curpos==current_event && RADIUS_LARGE)) + frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, bgcolor, RADIUS_LARGE); if(curpos