summaryrefslogtreecommitdiffstats
path: root/src/ui/edit.cpp
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-02-09 21:00:07 +0100
committererihel <erihel@gmail.com>2013-02-09 21:00:07 +0100
commit6f64770714c20a24a2edfd55777e05a047e61d0e (patch)
tree6a9119eb5714008e3573c179cddfbb1690f43d4c /src/ui/edit.cpp
parent209c6412ae149cc7c503fd7da384f344a830423c (diff)
downloadcolobot-6f64770714c20a24a2edfd55777e05a047e61d0e.tar.gz
colobot-6f64770714c20a24a2edfd55777e05a047e61d0e.tar.bz2
colobot-6f64770714c20a24a2edfd55777e05a047e61d0e.zip
* Fixes to ingame editor
* Fixes to editor window. It's now possible to resize, move and press buttons
Diffstat (limited to 'src/ui/edit.cpp')
-rw-r--r--src/ui/edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/edit.cpp b/src/ui/edit.cpp
index 639215a..a1d213f 100644
--- a/src/ui/edit.cpp
+++ b/src/ui/edit.cpp
@@ -935,10 +935,10 @@ void CEdit::Draw()
pos.x = m_pos.x+(10.0f/640.0f);
if ( m_bAutoIndent )
{
+ const char *s = "\t"; // line | dotted
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_LEFT, 0);
+ m_engine->GetText()->DrawText(s, m_fontType, m_fontSize, pos, 1.0f, Gfx::TEXT_ALIGN_LEFT, 0);
pos.x += indentLength;
}
}