mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
CTextBox: use CORNER_NONE as default corner mode
CORNER_ALL is not the same like CORNER_NONE. Could cause problems in the evaluation.
This commit is contained in:
@@ -186,7 +186,7 @@ void CTextBox::initVar(void)
|
||||
m_nPaintBackground = true;
|
||||
m_SaveScreen = false;
|
||||
m_nBgRadius = m_old_nBgRadius = 0;
|
||||
m_nBgRadiusType = m_old_nBgRadiusType = CORNER_ALL;
|
||||
m_nBgRadiusType = m_old_nBgRadiusType = CORNER_NONE;
|
||||
|
||||
m_cLineArray.clear();
|
||||
|
||||
@@ -292,7 +292,7 @@ void CTextBox::initFramesRel(void)
|
||||
|
||||
m_cFrameTextRel.iX = 0;
|
||||
m_cFrameTextRel.iY = 0;
|
||||
m_cFrameTextRel.iHeight = m_cFrame.iHeight ;
|
||||
m_cFrameTextRel.iHeight = m_cFrame.iHeight ;
|
||||
|
||||
if(m_nMode & SCROLL)
|
||||
{
|
||||
@@ -583,7 +583,7 @@ void CTextBox::refreshText(void)
|
||||
if( frameBuffer == NULL)
|
||||
return;
|
||||
|
||||
//TRACE("[CTextBox] m_nCurrentLine: %d, m_nNrOfLines %d, m_cLineArray[m_nCurrentLine]: %s\r\n",m_nCurrentLine, m_nNrOfLines, m_cLineArray[m_nCurrentLine].c_str());
|
||||
//TRACE("[CTextBox] m_nCurrentLine: %d, m_nNrOfLines %d, m_cLineArray[m_nCurrentLine]: %s m_nBgRadius: %d\r\n",m_nCurrentLine, m_nNrOfLines, m_cLineArray[m_nCurrentLine].c_str(), m_nBgRadius, m_nBgRadiusType);
|
||||
|
||||
//bg variables
|
||||
int ax = m_cFrameTextRel.iX+m_cFrame.iX;
|
||||
@@ -688,7 +688,7 @@ void CTextBox::refreshText(void)
|
||||
y += m_nFontTextHeight + ((m_cFrameTextRel.iHeight - m_nFontTextHeight * lines) >> 1);
|
||||
|
||||
#ifdef VISUAL_DEBUG
|
||||
frameBuffer->paintBoxRel(m_cFrame.iX, m_cFrame.iY, m_cFrame.iWidth, m_cFrame.iHeight, COL_GREEN);
|
||||
frameBuffer->paintBoxRel(m_cFrame.iX, m_cFrame.iY, m_cFrame.iWidth, m_cFrame.iHeight, COL_GREEN, m_nBgRadius, m_nBgRadiusType);
|
||||
#endif
|
||||
|
||||
for(i = m_nCurrentLine; i < m_nNrOfLines && i < m_nCurrentLine + m_nLinesPerPage; i++)
|
||||
@@ -710,7 +710,7 @@ void CTextBox::refreshText(void)
|
||||
|
||||
#ifdef VISUAL_DEBUG
|
||||
int th = m_nFontTextHeight;
|
||||
frameBuffer->paintBoxRel(tx, ty-th, tw, th, COL_RED);
|
||||
frameBuffer->paintBoxRel(tx, ty-th, tw, th, COL_RED, m_nBgRadius, m_nBgRadiusType);
|
||||
#endif
|
||||
//TRACE("[CTextBox] %s Line %d m_cFrame.iX %d m_cFrameTextRel.iX %d\r\n", __FUNCTION__, __LINE__, m_cFrame.iX, m_cFrameTextRel.iX);
|
||||
m_pcFontText->RenderString(tx, ty, tw, m_cLineArray[i].c_str(), m_textColor, 0, m_renderMode | (m_utf8_encoded) ? Font::IS_UTF8 : 0);
|
||||
|
Reference in New Issue
Block a user