mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
Revert "src/gui/widget/textbox.cpp supplement to try to fix text lines per page"
This reverts commit82330c5883
. Origin commit data ------------------ Commit:3815694e39
Author: Jacek Jendrzej <overx300@gmail.com> Date: 2016-11-03 (Thu, 03 Nov 2016)
This commit is contained in:
@@ -310,9 +310,8 @@ void CTextBox::initFramesRel(void)
|
||||
|
||||
m_cFrameTextRel.iWidth = m_cFrame.iWidth - m_cFrameScrollRel.iWidth;
|
||||
|
||||
int lines_per_page_tmp = (m_cFrameTextRel.iHeight - (2*text_Vborder_width)) / m_nFontTextHeight;
|
||||
m_nLinesPerPage = std::max(1,lines_per_page_tmp);
|
||||
if(lines_per_page_tmp && (m_cFrameTextRel.iHeight - (2*text_Vborder_width)) % m_nFontTextHeight)
|
||||
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
|
||||
@@ -468,9 +467,8 @@ void CTextBox::refreshTextLineArray(void)
|
||||
reSizeMainFrameHeight(m_nNrOfLines * m_nFontTextHeight);
|
||||
}
|
||||
|
||||
int lines_per_page_tmp = (m_cFrameTextRel.iHeight - (2*text_Vborder_width)) / m_nFontTextHeight;
|
||||
m_nLinesPerPage = std::max(1, lines_per_page_tmp);
|
||||
if(lines_per_page_tmp && (m_cFrameTextRel.iHeight - (2*text_Vborder_width)) % m_nFontTextHeight)
|
||||
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;
|
||||
|
||||
|
Reference in New Issue
Block a user