Mercurial > hg > openttd
changeset 9719:273a2779fd2b draft
(svn r13840) -Fix: Some glitches in the autoreplace GUI.
author | frosch <frosch@openttd.org> |
---|---|
date | Sat, 26 Jul 2008 17:55:49 +0000 |
parents | 3c66bb36c785 |
children | 7aa78e4bca3d |
files | src/autoreplace_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/autoreplace_gui.cpp +++ b/src/autoreplace_gui.cpp @@ -374,7 +374,7 @@ 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 @@ 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: