Changeset - r15373:f9cf3b1f9acf
[Not reviewed]
master
0 1 0
alberth - 14 years ago 2010-06-27 13:33:14
alberth@openttd.org
(svn r20026) -Codechange: No need to copy a formal parameter if the value is not needed further.
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/gfx.cpp
Show inline comments
 
@@ -641,14 +641,13 @@ int DrawString(int left, int right, int 
 
 * @param str string to check and correct for length restrictions
 
 * @param last the last valid location (for '\0') in the buffer of str
 
 * @param maxw the maximum width the string can have on one line
 
 * @param start_fontsize Fontsize to start the text with
 
 * @param size Fontsize to start the text with
 
 * @return return a 32bit wide number consisting of 2 packed values:
 
 *  0 - 15 the number of lines ADDED to the string
 
 * 16 - 31 the fontsize in which the length calculation was done at
 
 */
 
uint32 FormatStringLinebreaks(char *str, const char *last, int maxw, FontSize start_fontsize)
 
uint32 FormatStringLinebreaks(char *str, const char *last, int maxw, FontSize size)
 
{
 
	FontSize size = start_fontsize;
 
	int num = 0;
 

	
 
	assert(maxw > 0);
0 comments (0 inline, 0 general)