summaryrefslogtreecommitdiffstats
path: root/src/graphics/engine
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/graphics/engine
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/graphics/engine')
-rw-r--r--src/graphics/engine/text.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/graphics/engine/text.cpp b/src/graphics/engine/text.cpp
index da1a290..dfe7a3c 100644
--- a/src/graphics/engine/text.cpp
+++ b/src/graphics/engine/text.cpp
@@ -682,11 +682,13 @@ void CText::DrawCharAndAdjustPos(UTF8Char ch, FontType font, float size, Math::P
int width = 1;
if (ch.c1 > 0 && ch.c1 < 32) { // FIXME add support for chars with code 9 10 23
- ch.c1 = ' ';
+ if (ch.c1 == '\t') {
+ ch.c1 = ':';
+ } else {
+ ch.c1 = ' ';
+ }
ch.c2 = 0;
ch.c3 = 0;
- if (ch.c1 == '\t')
- width = 4;
}
auto it = cf->cache.find(ch);