mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
src/gui/channellist.cpp: minitv osd fix
This commit is contained in:
@@ -467,7 +467,6 @@ void CChannelList::calcSize()
|
|||||||
widthDetails = width;
|
widthDetails = width;
|
||||||
if (g_settings.channellist_minitv){
|
if (g_settings.channellist_minitv){
|
||||||
widthDetails = frameBuffer->getScreenWidth() - frameBuffer->getScreenX();
|
widthDetails = frameBuffer->getScreenWidth() - frameBuffer->getScreenX();
|
||||||
infozone_width = widthDetails - width;
|
|
||||||
}
|
}
|
||||||
height = h_max ((frameBuffer->getScreenHeight() / 20 * 16), (frameBuffer->getScreenHeight() / 20 * 2));
|
height = h_max ((frameBuffer->getScreenHeight() / 20 * 16), (frameBuffer->getScreenHeight() / 20 * 2));
|
||||||
if (g_settings.channellist_minitv)
|
if (g_settings.channellist_minitv)
|
||||||
@@ -510,7 +509,7 @@ void CChannelList::calcSize()
|
|||||||
y = frameBuffer->getScreenY();
|
y = frameBuffer->getScreenY();
|
||||||
pig_width = widthDetails / 3 - 16;
|
pig_width = widthDetails / 3 - 16;
|
||||||
pig_height = pig_width / 16 * 9;
|
pig_height = pig_width / 16 * 9;
|
||||||
|
// infozone_width = pig_width - 8;
|
||||||
infozone_height = height - theight - pig_height;
|
infozone_height = height - theight - pig_height;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2100,7 +2099,7 @@ void CChannelList::paint_pig (int _x, int _y, int w, int h)
|
|||||||
void CChannelList::paint_events(int index)
|
void CChannelList::paint_events(int index)
|
||||||
{
|
{
|
||||||
readEvents(chanlist[index]->channel_id);
|
readEvents(chanlist[index]->channel_id);
|
||||||
frameBuffer->paintBoxRel(x+ width,y+ theight+pig_height, infozone_width, infozone_height,COL_MENUHEAD_PLUS_0);
|
frameBuffer->paintBoxRel(x+ width,y+ theight+pig_height, widthDetails - width, infozone_height,COL_MENUHEAD_PLUS_0);
|
||||||
|
|
||||||
char text1[10];
|
char text1[10];
|
||||||
CChannelEventList::iterator e;
|
CChannelEventList::iterator e;
|
||||||
@@ -2141,7 +2140,7 @@ void CChannelList::paint_events(int index)
|
|||||||
if ((y+ theight+ pig_height + i*ffheight) < (y+ height))
|
if ((y+ theight+ pig_height + i*ffheight) < (y+ height))
|
||||||
{
|
{
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO1]->RenderString(x+ width+5, y+ theight+ pig_height + i*ffheight, timewidth, text1, COL_MENUCONTENTDARK, 0, true);
|
g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO1]->RenderString(x+ width+5, y+ theight+ pig_height + i*ffheight, timewidth, text1, COL_MENUCONTENTDARK, 0, true);
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO1]->RenderString(x+ width+5+timewidth+5, y+ theight+ pig_height + i*ffheight, infozone_width - timewidth - 20, e->description, COL_MENUCONTENTDARK, 0, true);
|
g_Font[SNeutrinoSettings::FONT_TYPE_EPG_INFO1]->RenderString(x+ width+5+timewidth+5, y+ theight+ pig_height + i*ffheight, widthDetails - width - timewidth - 20, e->description, COL_MENUCONTENTDARK, 0, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user