From f83b71828ef43d3028d99e264e6841484e95365f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 25 Apr 2021 01:07:31 +0100 Subject: [PATCH] Partially revert 8e539ce2: Fix train/RV spacing at normal zoom See: https://github.com/OpenTTD/OpenTTD/pull/9041 --- src/group_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 606b5fe415..fa9e65158a 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -263,7 +263,7 @@ private: this->column_size[VGC_NUMBER] = GetStringBoundingBox(STR_GROUP_COUNT_WITH_SUBGROUP); this->tiny_step_height = std::max(this->tiny_step_height, this->column_size[VGC_NUMBER].height); - this->tiny_step_height += WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM; + this->tiny_step_height += WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM + 1; return WD_FRAMERECT_LEFT + 8 + this->column_size[VGC_FOLD].width + 2 + @@ -636,11 +636,11 @@ public: { switch (widget) { case WID_GL_ALL_VEHICLES: - DrawGroupInfo(r.top, r.left, r.right, ALL_GROUP); + DrawGroupInfo(r.top + WD_FRAMERECT_TOP, r.left, r.right, ALL_GROUP); break; case WID_GL_DEFAULT_VEHICLES: - DrawGroupInfo(r.top, r.left, r.right, DEFAULT_GROUP); + DrawGroupInfo(r.top + WD_FRAMERECT_TOP, r.left, r.right, DEFAULT_GROUP); break; case WID_GL_INFO: { @@ -668,7 +668,7 @@ public: } case WID_GL_LIST_GROUP: { - int y1 = r.top; + int y1 = r.top + WD_FRAMERECT_TOP; int max = std::min(this->group_sb->GetPosition() + this->group_sb->GetCapacity(), this->groups.size()); for (int i = this->group_sb->GetPosition(); i < max; ++i) { const Group *g = this->groups[i];