mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
channellist: colored_events to right infobox
Origin commit data
------------------
Branch: ni/coolstream
Commit: 273a83fa3f
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-05-18 (Sat, 18 May 2013)
Origin message was:
------------------
- channellist: colored_events to right infobox
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2262,16 +2262,19 @@ void CChannelList::paint_events(int index)
|
|||||||
if ((y+ theight+ pig_height + i*ffheight) < (y+ theight+ pig_height + infozone_height))
|
if ((y+ theight+ pig_height + i*ffheight) < (y+ theight+ pig_height + infozone_height))
|
||||||
{
|
{
|
||||||
bool first = false;
|
bool first = false;
|
||||||
|
fb_pixel_t color = COL_MENUCONTENTDARK;
|
||||||
if (e->eventID)
|
if (e->eventID)
|
||||||
{
|
{
|
||||||
first = (i == 1);
|
first = (i == 1);
|
||||||
|
if ((first) && (g_settings.colored_events_channellist == 1 /* current */) || (!first) && (g_settings.colored_events_channellist == 2 /* next */))
|
||||||
|
color = COL_COLORED_EVENTS_CHANNELLIST;
|
||||||
struct tm *tmStartZeit = localtime(&e->startTime);
|
struct tm *tmStartZeit = localtime(&e->startTime);
|
||||||
strftime(startTime, sizeof(startTime), "%H:%M", tmStartZeit );
|
strftime(startTime, sizeof(startTime), "%H:%M", tmStartZeit );
|
||||||
//printf("%s %s\n", startTime, e->description.c_str());
|
//printf("%s %s\n", startTime, e->description.c_str());
|
||||||
startTimeWidth = eventStartTimeWidth;
|
startTimeWidth = eventStartTimeWidth;
|
||||||
g_Font[eventFont]->RenderString(x+ width+5, y+ theight+ pig_height + i*ffheight, startTimeWidth, startTime, (g_settings.colored_events_channellist == 2 /* next */) ? COL_COLORED_EVENTS_CHANNELLIST : COL_MENUCONTENTINACTIVE, 0, true);
|
g_Font[eventFont]->RenderString(x+ width+5, y+ theight+ pig_height + i*ffheight, startTimeWidth, startTime, color, 0, true);
|
||||||
}
|
}
|
||||||
g_Font[eventFont]->RenderString(x+ width+5+startTimeWidth, y+ theight+ pig_height + i*ffheight, infozone_width - startTimeWidth - 20, e->description, (first) ? COL_MENUHEAD : COL_MENUCONTENTDARK, 0, true);
|
g_Font[eventFont]->RenderString(x+ width+5+startTimeWidth, y+ theight+ pig_height + i*ffheight, infozone_width - startTimeWidth - 20, e->description, color, 0, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user