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 c765e99c09
commit 9d9528b14e
35 changed files with 106 additions and 119 deletions
+3 -3
View File
@@ -530,7 +530,7 @@ struct GenerateLandscapeWindow : public Window {
case WID_GL_MAPSIZE_Y_PULLDOWN:
SetDParamMaxValue(0, MAX_MAP_SIZE);
*size = maxdim(*size, GetStringBoundingBox(STR_JUST_INT));
size->width = size->width + GetMinSizing(NWST_BUTTON);
size->width = size->width + GetMinButtonSize();
break;
case WID_GL_SNOW_COVERAGE_TEXT:
@@ -1079,9 +1079,9 @@ struct CreateScenarioWindow : public Window
}
*size = maxdim(*size, GetStringBoundingBox(str));
size->width += padding.width;
size->width = GetMinSizing(NWST_BUTTON, size->width);
size->width = GetMinButtonSize(size->width);
size->height += padding.height;
size->height = GetMinSizing(NWST_BUTTON, size->height);
size->height = GetMinButtonSize(size->height);
}
void OnClick(Point pt, int widget, int click_count) override