Removed NWST_STEP and min_step, we don't need two variables doing the same thing

This commit is contained in:
Sergii Pylypenko
2021-05-07 22:24:45 +03:00
parent 607d73f872
commit e80df6ae8e
37 changed files with 145 additions and 168 deletions
+1 -1
View File
@@ -528,7 +528,7 @@ struct MusicTrackSelectionWindow : public Window {
SetDParamStr(2, song->songname);
d = maxdim(d, GetStringBoundingBox(STR_PLAYLIST_TRACK_NAME));
}
resize->height = GetMinSizing(NWST_STEP, d.height);
resize->height = GetMinSizing(NWST_BUTTON, d.height);
d.width += WD_FRAMERECT_LEFT + WD_FRAMERECT_RIGHT;
d.height = 7 * resize->height + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM;
*size = maxdim(*size, d);