Use DesktopGameWindow.GetCurrentDisplay method

This commit is contained in:
Roman Kapustin 2018-07-09 21:57:31 +03:00
parent 3dbdfcc1e2
commit 699702f8d0

View File

@ -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);