From 91486b116b64d28a2f646e88f4d0d2d540bbc76f Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 26 Jul 2008 17:55:49 +0000 Subject: (svn r13840) -Fix: Some glitches in the autoreplace GUI. --- src/autoreplace_gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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: -- cgit v1.2.3-54-g00ecf