summaryrefslogtreecommitdiff
path: root/src/autoreplace_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-22 11:06:25 +0000
committerrubidium <rubidium@openttd.org>2009-03-22 11:06:25 +0000
commitdfe5dad5f68250ec67a3cb5e69bc7f9f58f9a58c (patch)
tree7c3693c152a65897c9f3b80f496caef3139058bf /src/autoreplace_gui.cpp
parentead0a6a6e52ff0b538ab5f345bd1ff6a11b30f8d (diff)
downloadopenttd-dfe5dad5f68250ec67a3cb5e69bc7f9f58f9a58c.tar.xz
(svn r15807) -Codechange: let the build vehicle gui helper function pass around left and right instead of only left and assuming infinite width.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index a5fdda7c9..b8782f6c6 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -327,7 +327,7 @@ public:
/* Also draw the details if an engine is selected */
if (this->sel_engine[i] != INVALID_ENGINE) {
const Widget *wi = &this->widget[i == 0 ? RVW_WIDGET_LEFT_DETAILS : RVW_WIDGET_RIGHT_DETAILS];
- int text_end = DrawVehiclePurchaseInfo(wi->left + 2, wi->top + 1, wi->right - wi->left - 2, this->sel_engine[i]);
+ int text_end = DrawVehiclePurchaseInfo(wi->left + 2, wi->right - 2, wi->top + 1, this->sel_engine[i]);
if (text_end > wi->bottom) {
this->SetDirty();