mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
CTextBox: remove statement for text change check
Check of text change is not enough. Scrollboxes could have some problems. Dimension changes must be considered too and this is to much effort at the moment. Use of OnAfterScrollPage is much easier. this reverts:47b4ea481c
Origin commit data ------------------ Commit:8afe4495e7
Author: Thilo Graf <dbt@novatux.de> Date: 2016-02-18 (Thu, 18 Feb 2016)
This commit is contained in:
@@ -563,7 +563,7 @@ void CTextBox::refreshText(void)
|
|||||||
//bg variables
|
//bg variables
|
||||||
int ax = m_cFrameTextRel.iX+m_cFrame.iX;
|
int ax = m_cFrameTextRel.iX+m_cFrame.iX;
|
||||||
int ay = m_cFrameTextRel.iY+m_cFrame.iY;
|
int ay = m_cFrameTextRel.iY+m_cFrame.iY;
|
||||||
int dx = m_old_cText != m_cText ? m_cFrameTextRel.iWidth : m_nMaxTextWidth;
|
int dx = m_cFrameTextRel.iWidth;
|
||||||
int dy = m_cFrameTextRel.iHeight;
|
int dy = m_cFrameTextRel.iHeight;
|
||||||
|
|
||||||
//find changes
|
//find changes
|
||||||
@@ -602,7 +602,6 @@ void CTextBox::refreshText(void)
|
|||||||
clearScreenBuffer();
|
clearScreenBuffer();
|
||||||
if (allow_paint_bg){
|
if (allow_paint_bg){
|
||||||
//TRACE("[CTextBox] %s paint bg %d\r\n", __FUNCTION__, __LINE__);
|
//TRACE("[CTextBox] %s paint bg %d\r\n", __FUNCTION__, __LINE__);
|
||||||
//paint full background only on new text, otherwise paint required background
|
|
||||||
frameBuffer->paintBoxRel(ax, ay, dx, dy, m_textBackgroundColor, m_nBgRadius, m_nBgRadiusType);
|
frameBuffer->paintBoxRel(ax, ay, dx, dy, m_textBackgroundColor, m_nBgRadius, m_nBgRadiusType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user