mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
gui/epgview: replace left/right chars with corresponding icons
This commit is contained in:
@@ -666,17 +666,17 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
|
|||||||
pb.paint(false);
|
pb.paint(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetPrevNextEPGData( epgData.eventID, &epgData.epg_times.startzeit );
|
static int iw = 0, ih = 0;
|
||||||
if ((prev_id != 0) && !call_fromfollowlist)
|
if (!iw && !ih)
|
||||||
{
|
frameBuffer->getIconSize(NEUTRINO_ICON_BUTTON_LEFT, &iw, &ih);
|
||||||
frameBuffer->paintBoxRel(sx+ 5, sy+ oy- botboxheight+ 4, botboxheight- 8, botboxheight- 8, COL_MENUCONTENT_PLUS_3);
|
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->RenderString(sx+ 10, sy+ oy- 3, widthr, "<", COL_MENUCONTENT_TEXT_PLUS_3);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((next_id != 0) && !call_fromfollowlist)
|
GetPrevNextEPGData( epgData.eventID, &epgData.epg_times.startzeit );
|
||||||
{
|
if (!call_fromfollowlist) {
|
||||||
frameBuffer->paintBoxRel(sx+ ox- botboxheight+ 8- 5, sy+ oy- botboxheight+ 4, botboxheight- 8, botboxheight- 8, COL_MENUCONTENT_PLUS_3);
|
int iy = sy + oy - 3 - height/2 - iw/2;
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_EPG_DATE]->RenderString(sx+ ox- botboxheight+ 8, sy+ oy- 3, widthr, ">", COL_MENUCONTENT_TEXT_PLUS_3);
|
if (prev_id)
|
||||||
|
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_LEFT, sx + 5, iy);
|
||||||
|
if (next_id)
|
||||||
|
frameBuffer->paintIcon(NEUTRINO_ICON_BUTTON_RIGHT, sx + ox - iw - 5, iy);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( doLoop )
|
if ( doLoop )
|
||||||
|
Reference in New Issue
Block a user