mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
audioplayer: fix detailsline position
Origin commit data
------------------
Branch: ni/coolstream
Commit: c7e1a77a21
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-10-01 (Sat, 01 Oct 2016)
Origin message was:
------------------
- audioplayer: fix detailsline position
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1824,7 +1824,7 @@ void CAudioPlayerGui::clearItemID3DetailsLine ()
|
||||
void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
{
|
||||
int xpos = m_x - ConnectLineBox_Width;
|
||||
int ypos1 = m_y + m_title_height + m_theight+ 0 + pos*m_fheight + INFO_BOX_Y_OFFSET;
|
||||
int ypos1 = m_y + m_title_height + m_theight + pos*m_fheight;
|
||||
int ypos2 = m_y + (m_height - m_info_height) + INFO_BOX_Y_OFFSET;
|
||||
int ypos1a = ypos1 + (m_fheight / 2);
|
||||
int ypos2a = ypos2 + (m_info_height / 2);
|
||||
@@ -1838,8 +1838,7 @@ void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
{
|
||||
//details line
|
||||
if (dline == NULL)
|
||||
dline = new CComponentsDetailLine(xpos, ypos1a, ypos2a, m_fheight/2, m_fheight);
|
||||
dline->setYPos(ypos1a);
|
||||
dline = new CComponentsDetailLine(xpos, ypos1a, ypos2a, m_fheight/2, m_info_height-RADIUS_LARGE*2);
|
||||
dline->paint(false);
|
||||
|
||||
// paint id3 infobox
|
||||
@@ -1847,7 +1846,6 @@ void CAudioPlayerGui::paintItemID3DetailsLine (int pos)
|
||||
ibox = new CComponentsInfoBox(m_x, ypos2, m_width, m_info_height);
|
||||
ibox->setFrameThickness(2);
|
||||
ibox->setCorner(RADIUS_LARGE);
|
||||
ibox->setYPos(ypos2);
|
||||
ibox->setColorBody(COL_MENUCONTENTDARK_PLUS_0);
|
||||
ibox->forceTextPaint(false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user