- listframe: add minimal offset to header line

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-02-16 23:19:04 +01:00
committed by Thilo Graf
parent de0d46e085
commit 49883a8775

View File

@@ -252,8 +252,8 @@ void CListFrame::initFramesRel(void)
if(m_nMode & HEADER_LINE)
{
m_cFrameHeaderListRel.iX = 0;
m_cFrameHeaderListRel.iY = 0 + m_cFrameTitleRel.iHeight;
m_cFrameHeaderListRel.iHeight = m_nFontHeaderListHeight ;
m_cFrameHeaderListRel.iY = m_cFrameTitleRel.iHeight;
m_cFrameHeaderListRel.iHeight = m_nFontHeaderListHeight + 2*OFFSET_INNER_MIN;
}
else
{
@@ -433,7 +433,7 @@ void CListFrame::refreshLine(int line)
fb_pixel_t color, bgcolor;
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;
bool selected = (line == m_nSelectedLine && m_showSelection == true);
@@ -478,7 +478,7 @@ void CListFrame::refreshHeaderList(void)
int width;
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);
bool loop = true;
for(int row = 0; row < m_pLines->rows && loop == true; row++)