mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Remove redundant DesktopGameWindow cast
This commit is contained in:
@ -8,7 +8,6 @@ using osu.Framework.Allocation;
|
|||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Platform;
|
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Settings.Sections.Graphics
|
namespace osu.Game.Overlays.Settings.Sections.Graphics
|
||||||
{
|
{
|
||||||
@ -126,7 +125,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
|||||||
|
|
||||||
private List<KeyValuePair<string, int>> getResolutions()
|
private List<KeyValuePair<string, int>> getResolutions()
|
||||||
{
|
{
|
||||||
var availableDisplayResolutions = (game.Window as DesktopGameWindow)?.GetCurrentDisplay().AvailableResolutions
|
var availableDisplayResolutions = game.Window?.GetCurrentDisplay().AvailableResolutions
|
||||||
.Where(r => r.Width >= 800 && r.Height >= 600)
|
.Where(r => r.Width >= 800 && r.Height >= 600)
|
||||||
.OrderByDescending(r => r.Width).ThenByDescending(r => r.Height);
|
.OrderByDescending(r => r.Width).ThenByDescending(r => r.Height);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user