Renamed GetMinSizing() to GetMinButtonSize(), we do not use it for anything but button size

This commit is contained in:
Sergii Pylypenko
2021-05-07 22:52:01 +03:00
parent 1efdce0358
commit 26f6a01580
35 changed files with 114 additions and 123 deletions
+1 -1
View File
@@ -678,7 +678,7 @@ struct DepotWindow : Window {
int base_width = this->count_width + this->header_width;
resize->height = std::max<uint>(GetVehicleImageCellSize(this->type, EIT_IN_DEPOT).height, min_height);
resize->height = GetMinSizing(NWST_BUTTON, resize->height);
resize->height = GetMinButtonSize(resize->height);
if (this->type == VEH_TRAIN) {
resize->width = 1;
size->width = base_width + 2 * ScaleGUITrad(29); // about 2 parts