mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
Revert "src/gui/widget/textbox.cpp try to fix text lines per page"
This reverts commit d6c4324f6c
.
This commit is contained in:
@@ -311,8 +311,6 @@ void CTextBox::initFramesRel(void)
|
||||
m_cFrameTextRel.iWidth = m_cFrame.iWidth - m_cFrameScrollRel.iWidth;
|
||||
|
||||
m_nLinesPerPage = std::max(1, (m_cFrameTextRel.iHeight - (2*text_Vborder_width)) / m_nFontTextHeight);
|
||||
if((m_cFrameTextRel.iHeight - (2*text_Vborder_width)) % m_nFontTextHeight)
|
||||
m_nLinesPerPage += 1;
|
||||
|
||||
#if 0
|
||||
TRACE_1("Frames\r\n\tScren:\t%3d,%3d,%3d,%3d\r\n\tMain:\t%3d,%3d,%3d,%3d\r\n\tText:\t%3d,%3d,%3d,%3d \r\n\tScroll:\t%3d,%3d,%3d,%3d \r\n",
|
||||
@@ -468,8 +466,6 @@ void CTextBox::refreshTextLineArray(void)
|
||||
}
|
||||
|
||||
m_nLinesPerPage = std::max(1, (m_cFrameTextRel.iHeight - (2*text_Vborder_width)) / m_nFontTextHeight);
|
||||
if((m_cFrameTextRel.iHeight - (2*text_Vborder_width)) % m_nFontTextHeight)
|
||||
m_nLinesPerPage += 1;
|
||||
m_nNrOfPages = ((m_nNrOfLines-1) / m_nLinesPerPage) + 1;
|
||||
|
||||
if(m_nCurrentPage >= m_nNrOfPages)
|
||||
|
Reference in New Issue
Block a user