diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-04-17 21:08:47 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-04-17 22:23:43 +0200 |
commit | 3248a6c12b27801d44fbb67b405d204d10672c9f (patch) | |
tree | c01cc66d23497decd01f1fe51f5172e19055c009 /src/network/network_gui.cpp | |
parent | 195cf31cb9611594e8266d4145c8dbb0373fb4ab (diff) | |
download | openttd-3248a6c12b27801d44fbb67b405d204d10672c9f.tar.xz |
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.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index c1f11e84e..33639584a 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -500,6 +500,7 @@ public: switch (widget) { case WID_NG_MATRIX: 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; break; |