From c5c24a316506ef7493c3ca212657da215f3141ec Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 26 Mar 2020 17:45:38 +0000 Subject: [PATCH] Departures: Increase margin between right-hand columns --- src/departures_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/departures_gui.cpp b/src/departures_gui.cpp index c3f10f9e09..2d48cd7fcc 100644 --- a/src/departures_gui.cpp +++ b/src/departures_gui.cpp @@ -184,21 +184,21 @@ protected: unitnumber_digits = 3; } 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; } } for (GroupID gid : groups) { 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; } uint owner; FOR_EACH_SET_BIT(owner, companies) { 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; } }