From 9e2918d68eda89c5a7caab215733c0b3ecc227b5 Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Sat, 5 May 2018 12:27:34 +1100 Subject: [PATCH] MP Lobby: base resolution selection on window width not height [ci skip] Height isn't the problem. The default lobby can display fine even at 600 px h. Width is the problem the default layout faces at low resolutions, and it was quite odd to have a really wide window use the low resolution layout, despite there obviously being enough horizontal space to fit the sidebar. (cherry-picked from commit 2f565b8e90e9b49a49635034524eb79d29e5f80d) --- changelog.md | 1 + data/gui/window/lobby_main.cfg | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index fc8eff4f40eb..9a427736ed0f 100644 --- a/changelog.md +++ b/changelog.md @@ -70,6 +70,7 @@ * Ensure the chat widget remains the correct size even after a window resize. * Custom MP game names are now capped at 50 characters. * Restored Era info to main MP game display. + * Improved the resolution selection criteria for the MP Lobby. ### WML engine * Support formula= key in [variable] ConditionalWML * Support to_location in [move_unit], taking a location ID diff --git a/data/gui/window/lobby_main.cfg b/data/gui/window/lobby_main.cfg index 796813585e39..725b4823ce10 100644 --- a/data/gui/window/lobby_main.cfg +++ b/data/gui/window/lobby_main.cfg @@ -555,7 +555,7 @@ # Low resolution # [resolution] - window_height = 600 + window_width = 800 definition = "borderless" {GUI_WINDOW_FULLSCREEN} @@ -779,7 +779,7 @@ # Default resolution # [resolution] - window_height = 660 + window_width = 1000 definition = "borderless" {GUI_WINDOW_FULLSCREEN}