Skip to content

Commit

Permalink
MP Lobby: base resolution selection on window width not height
Browse files Browse the repository at this point in the history
[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 2f565b8)
  • Loading branch information
Vultraz committed Oct 7, 2018
1 parent 0b0a4d9 commit 9e2918d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions data/gui/window/lobby_main.cfg
Expand Up @@ -555,7 +555,7 @@
# Low resolution
#
[resolution]
window_height = 600
window_width = 800
definition = "borderless"

{GUI_WINDOW_FULLSCREEN}
Expand Down Expand Up @@ -779,7 +779,7 @@
# Default resolution
#
[resolution]
window_height = 660
window_width = 1000
definition = "borderless"

{GUI_WINDOW_FULLSCREEN}
Expand Down

0 comments on commit 9e2918d

Please sign in to comment.