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

View File

@@ -744,17 +744,17 @@ struct RefitWindow : public Window {
{
switch (widget) {
case WID_VR_MATRIX:
resize->height = GetMinSizing(NWST_BUTTON, WD_MATRIX_TOP + FONT_HEIGHT_NORMAL + WD_MATRIX_BOTTOM);
resize->height = GetMinButtonSize(WD_MATRIX_TOP + FONT_HEIGHT_NORMAL + WD_MATRIX_BOTTOM);
size->height = resize->height * 4;
break;
case WID_VR_VEHICLE_PANEL_DISPLAY:
size->height = std::max<uint>(GetMinSizing(NWST_BUTTON), ScaleGUITrad(GetVehicleHeight(Vehicle::Get(this->window_number)->type)));
size->height = std::max<uint>(GetMinButtonSize(), ScaleGUITrad(GetVehicleHeight(Vehicle::Get(this->window_number)->type)));
break;
case WID_VR_INFO:
size->width = WD_FRAMERECT_LEFT + this->information_width + WD_FRAMERECT_RIGHT;
size->height = GetMinSizing(NWST_BUTTON, FONT_HEIGHT_NORMAL);
size->height = GetMinButtonSize(FONT_HEIGHT_NORMAL);
break;
}
}