mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- listframe: add minimal offset to title line
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -238,7 +238,7 @@ void CListFrame::initFramesRel(void)
|
|||||||
{
|
{
|
||||||
m_cFrameTitleRel.iX = 0;
|
m_cFrameTitleRel.iX = 0;
|
||||||
m_cFrameTitleRel.iY = 0;
|
m_cFrameTitleRel.iY = 0;
|
||||||
m_cFrameTitleRel.iHeight = m_nFontTitleHeight +2 ;
|
m_cFrameTitleRel.iHeight = m_nFontTitleHeight + 2*OFFSET_INNER_MIN;
|
||||||
m_cFrameTitleRel.iWidth = m_cFrame.iWidth;
|
m_cFrameTitleRel.iWidth = m_cFrame.iWidth;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -358,7 +358,7 @@ void CListFrame::refreshTitle(void)
|
|||||||
m_nBgRadius, CORNER_TOP);
|
m_nBgRadius, CORNER_TOP);
|
||||||
|
|
||||||
m_pcFontTitle->RenderString(m_cFrameTitleRel.iX + OFFSET_INNER_MID + m_cFrame.iX,
|
m_pcFontTitle->RenderString(m_cFrameTitleRel.iX + OFFSET_INNER_MID + m_cFrame.iX,
|
||||||
m_cFrameTitleRel.iY + m_cFrameTitleRel.iHeight + m_cFrame.iY,
|
m_cFrameTitleRel.iY + m_cFrameTitleRel.iHeight - OFFSET_INNER_MIN + m_cFrame.iY,
|
||||||
m_cFrameTitleRel.iWidth - 2*OFFSET_INNER_MID,
|
m_cFrameTitleRel.iWidth - 2*OFFSET_INNER_MID,
|
||||||
m_textTitle.c_str(), TITLE_FONT_COLOR);
|
m_textTitle.c_str(), TITLE_FONT_COLOR);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user