From d837fc4d03bc2cab4ffcae9c8fb81d4226e30913 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 21 Mar 2009 23:45:34 +0000 Subject: (svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one. --- src/vehicle_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vehicle_gui.cpp') diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 0e16bf6dd..923899aad 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -439,9 +439,9 @@ uint ShowAdditionalText(int x, int y, uint w, EngineID engine) /* STR_02BD is used to start the string with {BLACK} */ SetDParam(0, GetGRFStringID(GetEngineGRFID(engine), 0xD000 + callback)); PrepareTextRefStackUsage(0); - uint result = DrawStringMultiLine(x, y, STR_02BD, w); + uint result = DrawStringMultiLine(x, x + w, y, INT32_MAX, STR_02BD); StopTextRefStackUsage(); - return result; + return result - y; } /** Display list of cargo types of the engine, for the purchase information window */ @@ -492,7 +492,7 @@ uint ShowRefitOptionsList(int x, int y, uint w, EngineID engine) assert(b < endof(string)); SetDParamStr(0, string); - return DrawStringMultiLine(x, y, STR_JUST_RAW_STRING, w); + return DrawStringMultiLine(x, x + w, y, INT32_MAX, STR_JUST_RAW_STRING); } /** Get the cargo subtype text from NewGRF for the vehicle details window. */ -- cgit v1.2.3-54-g00ecf