summaryrefslogtreecommitdiff
path: root/gfx.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-11-24 18:39:22 +0000
committerpeter1138 <peter1138@openttd.org>2006-11-24 18:39:22 +0000
commitc079c83eb65e8365680523f6fba676f9c41ec10a (patch)
tree55d15b28e028ea338db8ec11d3266151027da760 /gfx.c
parent8d175ccb136581de4fb77931b029841144fe3f52 (diff)
downloadopenttd-c079c83eb65e8365680523f6fba676f9c41ec10a.tar.xz
(svn r7250) -Codechange: Shuffle sprite loading and character width caching around a bit. This reduces the number of times the sprites are loaded from 5 to 2, just for the intro game.
Diffstat (limited to 'gfx.c')
-rw-r--r--gfx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx.c b/gfx.c
index 314de65d7..41c072d62 100644
--- a/gfx.c
+++ b/gfx.c
@@ -1613,6 +1613,9 @@ void LoadStringWidthTable(void)
{
uint i;
+ /* Initialize the unicode to sprite mapping table */
+ InitializeUnicodeGlyphMap();
+
/* Normal font */
for (i = 0; i != 224; i++) {
_stringwidth_table[FS_NORMAL][i] = GetGlyphWidth(FS_NORMAL, i + 32);