mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
channellist: fix transparent pixels in round corners of detail box
Origin commit data
------------------
Branch: ni/coolstream
Commit: c9a17eda0e
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-05-02 (Thu, 02 May 2013)
Origin message was:
------------------
- channellist: fix transparent pixels in round corners of detail box
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1567,7 +1567,8 @@ void CChannelList::paintDetails(int index)
|
|||||||
p_event = &chanlist[index]->currentEvent;
|
p_event = &chanlist[index]->currentEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
frameBuffer->paintBoxRel(x+2, y + height + 2, full_width-4, info_height - 4, COL_MENUCONTENTDARK_PLUS_0, RADIUS_LARGE);//round
|
frameBuffer->paintBoxRel(x+1, y + height + 1, full_width-2, info_height - 2, COL_MENUCONTENTDARK_PLUS_0, RADIUS_LARGE);//round
|
||||||
|
frameBuffer->paintBoxFrame(x, y + height, full_width, info_height, 2, COL_MENUCONTENT_PLUS_6, RADIUS_LARGE);
|
||||||
|
|
||||||
if (!p_event->description.empty()) {
|
if (!p_event->description.empty()) {
|
||||||
char cNoch[50] = {0}; // UTF-8
|
char cNoch[50] = {0}; // UTF-8
|
||||||
@@ -1672,32 +1673,20 @@ void CChannelList::clearItem2DetailsLine()
|
|||||||
void CChannelList::paintItem2DetailsLine (int pos)
|
void CChannelList::paintItem2DetailsLine (int pos)
|
||||||
{
|
{
|
||||||
int xpos = x - ConnectLineBox_Width;
|
int xpos = x - ConnectLineBox_Width;
|
||||||
int ypos1 = y + theight + pos*fheight;
|
int ypos1 = y + theight + pos*fheight + (fheight/2)-2;
|
||||||
int ypos2 = y + height;
|
int ypos2 = y + height + (info_height/2)-2;
|
||||||
int ypos1a = ypos1 + (fheight/2)-2;
|
|
||||||
int ypos2a = ypos2 + (info_height/2)-2;
|
|
||||||
fb_pixel_t col1 = COL_MENUCONTENT_PLUS_6;
|
|
||||||
|
|
||||||
if (dline){
|
if (dline){
|
||||||
dline->kill(); //kill details line
|
dline->kill(); //kill details line
|
||||||
delete dline;
|
delete dline;
|
||||||
dline = NULL;
|
dline = NULL;
|
||||||
}
|
}
|
||||||
// // Clear
|
|
||||||
// frameBuffer->paintBackgroundBoxRel(xpos,y, ConnectLineBox_Width, height+info_height + 1);
|
|
||||||
|
|
||||||
// paint Line if detail info (and not valid list pos)
|
// paint Line if detail info (and not valid list pos)
|
||||||
if (pos >= 0) { //pos >= 0 && chanlist[ch_index]->currentEvent.description != "") {
|
if (pos >= 0) {
|
||||||
if(1) // FIXME why -> ? (!g_settings.channellist_extended)
|
|
||||||
{
|
|
||||||
//details line
|
|
||||||
if (dline == NULL)
|
if (dline == NULL)
|
||||||
dline = new CComponentsDetailLine(xpos, ypos1a, ypos2a, fheight/2+1, info_height-RADIUS_LARGE*2);
|
dline = new CComponentsDetailLine(xpos, ypos1, ypos2, fheight/2+1, info_height-RADIUS_LARGE*2);
|
||||||
dline->paint();
|
dline->paint();
|
||||||
|
|
||||||
//info box frame
|
|
||||||
frameBuffer->paintBoxFrame(x, ypos2, full_width, info_height, 2, col1, RADIUS_LARGE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user