CComponentsText: add possibility to set a text border

Origin commit data
------------------
Branch: ni/coolstream
Commit: 96da2f95b8
Author: FlatTV <FlatTV@gmx.de>
Date: 2013-06-06 (Thu, 06 Jun 2013)

Origin message was:
------------------
- CComponentsText: add possibility to set a text border

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
FlatTV
2013-06-06 22:08:46 +02:00
committed by vanhofen
parent e2ba87187f
commit 1fce3ad769
3 changed files with 8 additions and 3 deletions

View File

@@ -353,8 +353,8 @@ void CTextBox::refreshTextLineArray(void)
lineBreakWidth = std::max(m_nMaxWidth, m_cFrameTextRel.iWidth - 2*text_border_width);
}
if(m_nMaxTextWidth)
lineBreakWidth = m_nMaxTextWidth;
if(m_nMaxTextWidth)
lineBreakWidth = m_nMaxTextWidth - 2*text_border_width;
//TRACE("[CTextBox] line %d: lineBreakWidth %d\n", __LINE__, lineBreakWidth);