mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- listframe: fix calculation of m_nLinesPerPage (part 2)
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -311,7 +311,7 @@ void CListFrame::onNewLineArray(void)
|
|||||||
{
|
{
|
||||||
reSizeMainFrameHeight(m_nNrOfLines * m_nFontListHeight);
|
reSizeMainFrameHeight(m_nNrOfLines * m_nFontListHeight);
|
||||||
}
|
}
|
||||||
m_nLinesPerPage = (m_cFrameListRel.iHeight - (2*OFFSET_INNER_MID)) / m_nFontListHeight;
|
m_nLinesPerPage = m_cFrameListRel.iHeight / m_nFontListHeight;
|
||||||
|
|
||||||
if(m_nLinesPerPage <= 0)
|
if(m_nLinesPerPage <= 0)
|
||||||
m_nLinesPerPage = 1;
|
m_nLinesPerPage = 1;
|
||||||
|
Reference in New Issue
Block a user