CTextBox: add optional text align TOP

Origin commit data
------------------
Branch: ni/coolstream
Commit: 33e684bc20
Author: Thilo Graf <dbt@novatux.de>
Date: 2012-09-22 (Sat, 22 Sep 2012)

Origin message was:
------------------
*CTextBox: add optional text align TOP

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

------------------
This commit was generated by Migit
This commit is contained in:
2012-09-22 23:17:30 +02:00
parent b4d09f65da
commit 092c8223e8
2 changed files with 3 additions and 2 deletions

View File

@@ -507,8 +507,8 @@ void CTextBox::refreshText(void)
int i;
int x_center = 0;
// set text y position depends of lines count
if (m_nNrOfLines > 1)
// set text y position
if (m_nMode & TOP)
// move to top of frame
y += m_nFontTextHeight + ((m_cFrameTextRel.iHeight - m_nFontTextHeight * m_nLinesPerPage) >> 1) - text_border_width;
else