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
commit99197b608a5c5a51e01be7f12f0f26f684795b8a (patch)
tree8005097e607d7cdb0d7b03e2627fbc55efcfdd0d /viewport.c
parente02b86c88b2ace1b6aac58d947083aca8de6c16b (diff)
downloadopenttd-99197b608a5c5a51e01be7f12f0f26f684795b8a.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;
}