summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-06-27 13:33:14 +0000
committeralberth <alberth@openttd.org>2010-06-27 13:33:14 +0000
commit829bd7d2760168869ee85bdb2f369d5c40e6e7be (patch)
treeb4b46871fcea7e9474a96e523ea4f72241e97761
parent604e56adc2092d31c02f16b8412d550f7986557c (diff)
downloadopenttd-829bd7d2760168869ee85bdb2f369d5c40e6e7be.tar.xz
(svn r20026) -Codechange: No need to copy a formal parameter if the value is not needed further.
-rw-r--r--src/gfx.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 46efc35b1..a16a1bbfa 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -641,14 +641,13 @@ int DrawString(int left, int right, int top, StringID str, TextColour colour, St
* @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);