CTextBox: Add Flag m_renderMode (Font::FULLBG) for RenderString()

Origin commit data
------------------
Commit: 1b9037e8e8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2014-06-27 (Fri, 27 Jun 2014)
This commit is contained in:
Michael Liebmann
2014-06-27 22:14:01 +02:00
parent 5c722ff7b3
commit 7135b7649d
2 changed files with 5 additions and 1 deletions

View File

@@ -185,6 +185,8 @@ void CTextBox::initVar(void)
m_cLineArray.clear();
m_renderMode = 0;
// max_width = 0;
}
@@ -639,7 +641,7 @@ void CTextBox::refreshText(void)
//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(m_cFrame.iX + m_cFrameTextRel.iX + text_Hborder_width + x_center,
y+m_cFrame.iY, m_cFrameTextRel.iWidth, m_cLineArray[i].c_str(),
m_textColor);
m_textColor, 0, m_renderMode | Font::IS_UTF8);
m_old_cText = m_cText;
y += m_nFontTextHeight;
}