(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.

This commit is contained in:
2006-11-24 18:39:22 +00:00
parent 8d175ccb13
commit c079c83eb6
4 changed files with 9 additions and 15 deletions

3
gfx.c
View File

@@ -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);