Changeset - r13709:7bb86b38b696
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2009-11-22 20:23:41
frosch@openttd.org
(svn r18244) -Codechange: Make texteffects big font aware.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/texteff.cpp
Show inline comments
 
@@ -83,14 +83,14 @@ TextEffectID AddTextEffect(StringID msg,
 

	
 
	te = &_text_effect_list[i];
 

	
 
	/* Start defining this object */
 
	te->string_id = msg;
 
	te->duration = duration;
 
	te->y = y - 5;
 
	te->bottom = y + 5;
 
	te->y = y - FONT_HEIGHT_NORMAL / 2;
 
	te->bottom = y + FONT_HEIGHT_NORMAL / 2;
 
	te->params_1 = GetDParam(0);
 
	te->mode = mode;
 

	
 
	GetString(buffer, msg, lastof(buffer));
 
	w = GetStringBoundingBox(buffer).width;
 

	
0 comments (0 inline, 0 general)