diff options
author | erihel <erihel@gmail.com> | 2012-08-17 23:05:59 +0200 |
---|---|---|
committer | erihel <erihel@gmail.com> | 2012-08-17 23:05:59 +0200 |
commit | a00032d07565b39b8cd1a485b0dd02df87cc18e7 (patch) | |
tree | 6c87157f6340e6b3061823465c776e14ecc52ec3 /src | |
parent | ea6269c4110282a3e7c05bec9c7f17ffd1bd5191 (diff) | |
download | colobot-a00032d07565b39b8cd1a485b0dd02df87cc18e7.tar.gz colobot-a00032d07565b39b8cd1a485b0dd02df87cc18e7.tar.bz2 colobot-a00032d07565b39b8cd1a485b0dd02df87cc18e7.zip |
* ui/label.cpp compiles
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/label.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/label.cpp b/src/ui/label.cpp index 261f3fc..ec7b2cb 100644 --- a/src/ui/label.cpp +++ b/src/ui/label.cpp @@ -70,11 +70,11 @@ void CLabel::Draw() pos.y = m_pos.y + m_dim.y / 2.0f; - switch (m_justif) { + switch (m_textAlign) { case Gfx::TEXT_ALIGN_LEFT: pos.x = m_pos.x; break; case Gfx::TEXT_ALIGN_CENTER: pos.x = m_pos.x + m_dim.x / 2.0f; break; case Gfx::TEXT_ALIGN_RIGHT: pos.x = m_pos.x + m_dim.x; break; } - m_engine->GetText()->DrawText(std::string(m_name), m_fontType, m_fontSize, pos, m_dim.x, m_justif, 0); + m_engine->GetText()->DrawText(std::string(m_name), m_fontType, m_fontSize, pos, m_dim.x, m_textAlign, 0); } |