1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 17:19:09 +00:00

Fix #9042: Make multiplayer server list height auto-fill window.

#9042 did not fix all combinations of scaling options. This additional
change makes the server list automatically fill available height.
This commit is contained in:
2021-04-17 21:08:47 +01:00
committed by Michael Lutz
parent 195cf31cb9
commit 3248a6c12b

View File

@@ -500,6 +500,7 @@ public:
switch (widget) { switch (widget) {
case WID_NG_MATRIX: case WID_NG_MATRIX:
resize->height = WD_MATRIX_TOP + std::max(GetSpriteSize(SPR_BLOT).height, (uint)FONT_HEIGHT_NORMAL) + WD_MATRIX_BOTTOM; resize->height = WD_MATRIX_TOP + std::max(GetSpriteSize(SPR_BLOT).height, (uint)FONT_HEIGHT_NORMAL) + WD_MATRIX_BOTTOM;
fill->height = resize->height;
size->height = 12 * resize->height; size->height = 12 * resize->height;
break; break;