summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-07-26 17:55:49 +0000
committerfrosch <frosch@openttd.org>2008-07-26 17:55:49 +0000
commit91486b116b64d28a2f646e88f4d0d2d540bbc76f (patch)
tree4441a39542c5ce61e0ecb73ef5dd8efa967a9b7a
parent16c80d031c49988143fec34af598685bb8bcefd1 (diff)
downloadopenttd-91486b116b64d28a2f646e88f4d0d2d540bbc76f.tar.xz
(svn r13840) -Fix: Some glitches in the autoreplace GUI.
-rw-r--r--src/autoreplace_gui.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index 964ded850..8fbe26198 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -374,7 +374,7 @@ public:
SetDParam(0, STR_NOT_REPLACING_VEHICLE_SELECTED);
}
- DrawString(145, this->widget[RVW_WIDGET_INFO_TAB].top + 1, STR_02BD, TC_BLACK);
+ DrawStringTruncated(this->widget[RVW_WIDGET_INFO_TAB].left + 6, this->widget[RVW_WIDGET_INFO_TAB].top + 1, STR_02BD, TC_BLACK, this->GetWidgetWidth(RVW_WIDGET_INFO_TAB) - 12);
/* Draw the lists */
for (byte i = 0; i < 2; i++) {
@@ -422,11 +422,13 @@ public:
EngineID veh_from = this->sel_engine[0];
EngineID veh_to = this->sel_engine[1];
DoCommandP(0, 3 + (this->sel_group << 16) , veh_from + (veh_to << 16), NULL, CMD_SET_AUTOREPLACE);
+ this->SetDirty();
} break;
case RVW_WIDGET_STOP_REPLACE: { /* Stop replacing */
EngineID veh_from = this->sel_engine[0];
DoCommandP(0, 3 + (this->sel_group << 16), veh_from + (INVALID_ENGINE << 16), NULL, CMD_SET_AUTOREPLACE);
+ this->SetDirty();
} break;
case RVW_WIDGET_LEFT_MATRIX: