mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
* CTextBox::scrollPageUp/Down: Suppress refresh when there is nothing to scroll
This commit is contained in:
@@ -554,8 +554,10 @@ void CTextBox::scrollPageDown(const int pages)
|
|||||||
{
|
{
|
||||||
m_nCurrentPage = m_nNrOfPages - 1;
|
m_nCurrentPage = m_nNrOfPages - 1;
|
||||||
}
|
}
|
||||||
|
int oldCurrentLine = m_nCurrentLine;
|
||||||
m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage;
|
m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage;
|
||||||
refresh();
|
if (oldCurrentLine != m_nCurrentLine)
|
||||||
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTextBox::scrollPageUp(const int pages)
|
void CTextBox::scrollPageUp(const int pages)
|
||||||
@@ -575,8 +577,10 @@ void CTextBox::scrollPageUp(const int pages)
|
|||||||
{
|
{
|
||||||
m_nCurrentPage = 0;
|
m_nCurrentPage = 0;
|
||||||
}
|
}
|
||||||
|
int oldCurrentLine = m_nCurrentLine;
|
||||||
m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage;
|
m_nCurrentLine = m_nCurrentPage * m_nLinesPerPage;
|
||||||
refresh();
|
if (oldCurrentLine != m_nCurrentLine)
|
||||||
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTextBox::refresh(void)
|
void CTextBox::refresh(void)
|
||||||
|
Reference in New Issue
Block a user