mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
* CNeutrinoEventList: Skip unnecessary drawing of the background
This commit is contained in:
committed by
Michael Liebmann
parent
266a975e5b
commit
1d2ac01ecc
@@ -703,9 +703,7 @@ void CNeutrinoEventList::paintItem(unsigned int pos, t_channel_id channel_idI)
|
|||||||
uint8_t color;
|
uint8_t color;
|
||||||
fb_pixel_t bgcolor;
|
fb_pixel_t bgcolor;
|
||||||
int ypos = y+ theight+0 + pos*fheight;
|
int ypos = y+ theight+0 + pos*fheight;
|
||||||
std::string datetime1_str, datetime2_str, duration_str;
|
|
||||||
unsigned int curpos = liststart + pos;
|
unsigned int curpos = liststart + pos;
|
||||||
const char * icontype = 0;
|
|
||||||
|
|
||||||
if(RADIUS_LARGE)
|
if(RADIUS_LARGE)
|
||||||
frameBuffer->paintBoxRel(x, ypos, width- 15, fheight, COL_MENUCONTENT_PLUS_0, 0);
|
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;
|
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<evtlist.size())
|
if(curpos<evtlist.size())
|
||||||
{
|
{
|
||||||
|
std::string datetime1_str, datetime2_str, duration_str;
|
||||||
if ( evtlist[curpos].eventID != 0 )
|
if ( evtlist[curpos].eventID != 0 )
|
||||||
{
|
{
|
||||||
char tmpstr[256];
|
char tmpstr[256];
|
||||||
@@ -777,7 +777,7 @@ void CNeutrinoEventList::paintItem(unsigned int pos, t_channel_id channel_idI)
|
|||||||
// 2nd line
|
// 2nd line
|
||||||
// set status icons
|
// set status icons
|
||||||
CTimerd::CTimerEventTypes etype = isScheduled(m_showChannel ? evtlist[curpos].channelID : channel_idI, &evtlist[curpos]);
|
CTimerd::CTimerEventTypes etype = isScheduled(m_showChannel ? evtlist[curpos].channelID : channel_idI, &evtlist[curpos]);
|
||||||
icontype = etype == CTimerd::TIMER_ZAPTO ? NEUTRINO_ICON_ZAP : etype == CTimerd::TIMER_RECORD ? NEUTRINO_ICON_RECORDING_EVENT_MARKER : 0;
|
const char * icontype = etype == CTimerd::TIMER_ZAPTO ? NEUTRINO_ICON_ZAP : etype == CTimerd::TIMER_RECORD ? NEUTRINO_ICON_RECORDING_EVENT_MARKER : 0;
|
||||||
|
|
||||||
int iw = 0, ih;
|
int iw = 0, ih;
|
||||||
if(icontype != 0) {
|
if(icontype != 0) {
|
||||||
|
Reference in New Issue
Block a user