Departures: Increase margin between right-hand columns

This commit is contained in:
Jonathan G Rennison
2020-03-26 17:45:38 +00:00
parent c227d30801
commit c5c24a3165

View File

@@ -184,21 +184,21 @@ protected:
unitnumber_digits = 3; unitnumber_digits = 3;
} }
SetDParamMaxDigits(0, unitnumber_digits); SetDParamMaxDigits(0, unitnumber_digits);
int width = (GetStringBoundingBox(STR_SV_TRAIN_NAME + i)).width; int width = (GetStringBoundingBox(STR_SV_TRAIN_NAME + i)).width + 4;
if (width > this->veh_width) this->veh_width = width; if (width > this->veh_width) this->veh_width = width;
} }
} }
for (GroupID gid : groups) { for (GroupID gid : groups) {
SetDParam(0, (uint64)gid); SetDParam(0, (uint64)gid);
int width = (GetStringBoundingBox(STR_DEPARTURES_GROUP)).width; int width = (GetStringBoundingBox(STR_DEPARTURES_GROUP)).width + 4;
if (width > this->group_width) this->group_width = width; if (width > this->group_width) this->group_width = width;
} }
uint owner; uint owner;
FOR_EACH_SET_BIT(owner, companies) { FOR_EACH_SET_BIT(owner, companies) {
SetDParam(0, owner); SetDParam(0, owner);
int width = (GetStringBoundingBox(STR_DEPARTURES_TOC)).width; int width = (GetStringBoundingBox(STR_DEPARTURES_TOC)).width + 4;
if (width > this->toc_width) this->toc_width = width; if (width > this->toc_width) this->toc_width = width;
} }
} }