summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-06-19 12:08:44 +0000
committerrubidium <rubidium@openttd.org>2009-06-19 12:08:44 +0000
commit6a3a3042838a41575380bcddf11e126d566085cc (patch)
tree0a03eaae12a145d202c1bff1edaca9a1ceff54e6
parent0961668e142bd7e6ab09d896b7888a2056e9606c (diff)
downloadopenttd-6a3a3042838a41575380bcddf11e126d566085cc.tar.xz
(svn r16599) -Fix [FS#2987] (r16584): reset the 'current' font size after drawing, this way we won't draw other strings too small; only caused problems when tiny/big text strings would use SETX.
-rw-r--r--src/gfx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index a66c61faa..668d33c8a 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -556,6 +556,8 @@ static int DrawString(int left, int right, int top, char *str, const char *last,
}
}
+ _cur_fontsize = FS_NORMAL;
+
return align == SA_RIGHT ? min_left : max_right;
}