diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-18 17:52:36 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-18 17:52:36 +0200 |
commit | da5d4edeb3a41462ec987cb4994a6897823f3f76 (patch) | |
tree | 64f213a687681373bee28eb5283fc9023bee6b2b /src/ui/edit.cpp | |
parent | 4b67386a697c27186b6eb4809bea9547372dacd7 (diff) | |
download | colobot-da5d4edeb3a41462ec987cb4994a6897823f3f76.tar.gz colobot-da5d4edeb3a41462ec987cb4994a6897823f3f76.tar.bz2 colobot-da5d4edeb3a41462ec987cb4994a6897823f3f76.zip |
Fixed invalid text alignment
Diffstat (limited to 'src/ui/edit.cpp')
-rw-r--r-- | src/ui/edit.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/edit.cpp b/src/ui/edit.cpp index a4d5961..c1e7e5a 100644 --- a/src/ui/edit.cpp +++ b/src/ui/edit.cpp @@ -941,7 +941,7 @@ void CEdit::Draw() for ( j=0 ; j<m_lineIndent[i] ; j++ ) { char s = '\t'; // line | dotted - m_engine->GetText()->DrawText(&s, m_fontType, m_fontSize, pos, 1.0f, Gfx::TEXT_ALIGN_RIGHT, 0); + m_engine->GetText()->DrawText(&s, m_fontType, m_fontSize, pos, 1.0f, Gfx::TEXT_ALIGN_LEFT, 0); pos.x += indentLength; } } @@ -1063,7 +1063,7 @@ void CEdit::Draw() if ( !m_bMulti || !m_bDisplaySpec ) eol = 0; if ( m_format.size() == 0 ) { - m_engine->GetText()->DrawText(std::string(m_text+beg), m_fontType, size, ppos, m_dim.x, Gfx::TEXT_ALIGN_RIGHT, eol); + m_engine->GetText()->DrawText(std::string(m_text+beg), m_fontType, size, ppos, m_dim.x, Gfx::TEXT_ALIGN_LEFT, eol); } else { @@ -1072,7 +1072,7 @@ void CEdit::Draw() size, ppos, m_dim.x, - Gfx::TEXT_ALIGN_RIGHT, + Gfx::TEXT_ALIGN_LEFT, eol); } @@ -1104,14 +1104,14 @@ void CEdit::Draw() if ( m_format.size() == 0 ) { m_engine->GetText()->SizeText(std::string(m_text+m_lineOffset[i]), m_fontType, - size, pos, Gfx::TEXT_ALIGN_RIGHT, + size, pos, Gfx::TEXT_ALIGN_LEFT, start, end); } else { m_engine->GetText()->SizeText(std::string(m_text+m_lineOffset[i]), std::vector<Gfx::FontMetaChar>(m_format.begin()+m_lineOffset[i], m_format.end()), - size, pos, Gfx::TEXT_ALIGN_RIGHT, + size, pos, Gfx::TEXT_ALIGN_LEFT, start, end); } |