mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- listframe: add minimal offset to header line
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -252,8 +252,8 @@ void CListFrame::initFramesRel(void)
|
|||||||
if(m_nMode & HEADER_LINE)
|
if(m_nMode & HEADER_LINE)
|
||||||
{
|
{
|
||||||
m_cFrameHeaderListRel.iX = 0;
|
m_cFrameHeaderListRel.iX = 0;
|
||||||
m_cFrameHeaderListRel.iY = 0 + m_cFrameTitleRel.iHeight;
|
m_cFrameHeaderListRel.iY = m_cFrameTitleRel.iHeight;
|
||||||
m_cFrameHeaderListRel.iHeight = m_nFontHeaderListHeight ;
|
m_cFrameHeaderListRel.iHeight = m_nFontHeaderListHeight + 2*OFFSET_INNER_MIN;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -433,7 +433,7 @@ void CListFrame::refreshLine(int line)
|
|||||||
|
|
||||||
fb_pixel_t color, bgcolor;
|
fb_pixel_t color, bgcolor;
|
||||||
int rel_line = line - m_nCurrentLine;
|
int rel_line = line - m_nCurrentLine;
|
||||||
int y = m_cFrameListRel.iY + OFFSET_INNER_MID + (rel_line*m_nFontListHeight);
|
int y = m_cFrameListRel.iY + (rel_line*m_nFontListHeight);
|
||||||
int radius = 0;
|
int radius = 0;
|
||||||
|
|
||||||
bool selected = (line == m_nSelectedLine && m_showSelection == true);
|
bool selected = (line == m_nSelectedLine && m_showSelection == true);
|
||||||
@@ -478,7 +478,7 @@ void CListFrame::refreshHeaderList(void)
|
|||||||
|
|
||||||
int width;
|
int width;
|
||||||
int x = m_cFrameHeaderListRel.iX + OFFSET_INNER_MID;
|
int x = m_cFrameHeaderListRel.iX + OFFSET_INNER_MID;
|
||||||
int y = m_cFrameHeaderListRel.iY + m_nFontHeaderListHeight;
|
int y = m_cFrameHeaderListRel.iY + m_nFontHeaderListHeight + OFFSET_INNER_MIN;
|
||||||
int net_width = m_cFrameHeaderListRel.iWidth - OFFSET_INNER_SMALL * (m_pLines->rows - 1);
|
int net_width = m_cFrameHeaderListRel.iWidth - OFFSET_INNER_SMALL * (m_pLines->rows - 1);
|
||||||
bool loop = true;
|
bool loop = true;
|
||||||
for(int row = 0; row < m_pLines->rows && loop == true; row++)
|
for(int row = 0; row < m_pLines->rows && loop == true; row++)
|
||||||
|
Reference in New Issue
Block a user