Changeset - r13252:33966bc30662
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-10-13 19:24:58
rubidium@openttd.org
(svn r17771) -Codechange: use the 'StringID' function instead of the 'const char *' function + custom code to resolve the 'const char *' from the 'StringID'
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/misc_gui.cpp
Show inline comments
 
@@ -841,11 +841,9 @@ void GuiShowTooltips(StringID str, uint 
 
	if (str == STR_NULL) return;
 

	
 
	for (uint i = 0; i != paramcount; i++) SetDParam(i, params[i]);
 
	char buffer[512];
 
	GetString(buffer, str, lastof(buffer));
 

	
 
	Dimension br;
 
	br.width  = min(GetStringBoundingBox(buffer).width, 194);
 
	br.width  = min(GetStringBoundingBox(str).width, 194);
 
	br.height = GetStringHeight(str, br.width);
 

	
 
	/* increase slightly to have some space around the box */
0 comments (0 inline, 0 general)