Changeset - r5156:268aca9b281f
[Not reviewed]
master
0 2 0
peter1138 - 18 years ago 2006-11-24 20:47:29
peter1138@openttd.org
(svn r7254) -Fix (r7250): move unicode glyph map initialisation to just before newgrf files are loaded, else newgrf glyphs will be cleared out too. (thanks Hadez)
2 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
gfx.c
Show inline comments
 
@@ -1613,9 +1613,6 @@ 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);
gfxinit.c
Show inline comments
 
@@ -13,6 +13,7 @@
 
#include "newgrf.h"
 
#include "md5.h"
 
#include "variables.h"
 
#include "fontcache.h"
 
#include <string.h>
 

	
 
typedef struct MD5File {
 
@@ -372,6 +373,9 @@ static void LoadSpriteTables(void)
 
	assert(load_index == SPR_AIRPORTX_BASE);
 
	load_index += LoadGrfFile("airports.grf", load_index, i++);
 

	
 
	/* Initialize the unicode to sprite mapping table */
 
	InitializeUnicodeGlyphMap();
 

	
 
	LoadNewGRF(load_index, i);
 
}
 

	
0 comments (0 inline, 0 general)