diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 23:45:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 23:45:34 +0000 |
commit | d837fc4d03bc2cab4ffcae9c8fb81d4226e30913 (patch) | |
tree | 7735a9fe4858662401465187eed99bbd8c49f169 /src/vehicle_gui.cpp | |
parent | 676bf31e82fb666feee5cde9ffc65bdc7a5070a7 (diff) | |
download | openttd-d837fc4d03bc2cab4ffcae9c8fb81d4226e30913.tar.xz |
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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. */ |