mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Change sorting to better handle portrait screens
This commit is contained in:
parent
3d5783a0ea
commit
4f02928601
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -150,8 +151,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
|||||||
{
|
{
|
||||||
resolutions.AddRange(display.NewValue.DisplayModes
|
resolutions.AddRange(display.NewValue.DisplayModes
|
||||||
.Where(m => m.Size.Width >= 800 && m.Size.Height >= 600)
|
.Where(m => m.Size.Width >= 800 && m.Size.Height >= 600)
|
||||||
.OrderByDescending(m => m.Size.Width)
|
.OrderByDescending(m => Math.Max(m.Size.Height, m.Size.Width))
|
||||||
.ThenByDescending(m => m.Size.Height)
|
|
||||||
.Select(m => m.Size)
|
.Select(m => m.Size)
|
||||||
.Distinct());
|
.Distinct());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user