summaryrefslogtreecommitdiff
path: root/viewport.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-09 13:23:04 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-09 13:23:04 +0000
commitfd778ecafa01761e68cff310368dd035020f6b07 (patch)
tree8005097e607d7cdb0d7b03e2627fbc55efcfdd0d /viewport.c
parent52bab5e9bd30a5a8f20eba8a838748e3402fa87a (diff)
downloadopenttd-fd778ecafa01761e68cff310368dd035020f6b07.tar.xz
(svn r4802) - Codechange: replace _stringwidth_base and associated magic numbers with a FontSize enum, using the numbers (which are SpriteIDs) in only the places needed.
Diffstat (limited to 'viewport.c')
-rw-r--r--viewport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/viewport.c b/viewport.c
index 239a77d14..d9c7afd62 100644
--- a/viewport.c
+++ b/viewport.c
@@ -1002,9 +1002,9 @@ void UpdateViewportSignPos(ViewportSign *sign, int left, int top, StringID str)
sign->left = left - w / 2;
// zoomed out version
- _stringwidth_base = 0xE0;
+ _cur_fontsize = FS_SMALL;
w = GetStringWidth(buffer) + 3;
- _stringwidth_base = 0;
+ _cur_fontsize = FS_NORMAL;
sign->width_2 = w;
}