From 99197b608a5c5a51e01be7f12f0f26f684795b8a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 9 May 2006 13:23:04 +0000 Subject: (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. --- viewport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewport.c') 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; } -- cgit v1.2.3-54-g00ecf