mirror of
https://github.com/ppy/osu
synced 2024-12-26 08:53:10 +00:00
Use DesktopGameWindow.GetCurrentDisplay method
This commit is contained in:
parent
3dbdfcc1e2
commit
699702f8d0
@ -126,7 +126,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
||||
|
||||
private List<KeyValuePair<string, int>> getResolutions()
|
||||
{
|
||||
var availableDisplayResolutions = (game.Window as DesktopGameWindow)?.AvailableDisplayResolutions
|
||||
var availableDisplayResolutions = (game.Window as DesktopGameWindow)?.GetCurrentDisplay().AvailableResolutions
|
||||
.Where(r => r.Width >= 800 && r.Height >= 600)
|
||||
.OrderByDescending(r => r.Width).ThenByDescending(r => r.Height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user