1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-07 20:47:26 +08:00

Update usage of SupportedWindowModes

This commit is contained in:
Dean Herbert 2023-04-02 20:16:14 +09:00
parent 0f0dd9f2dc
commit cf5acbf66e

View File

@ -75,7 +75,6 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
if (window != null) if (window != null)
{ {
currentDisplay.BindTo(window.CurrentDisplayBindable); currentDisplay.BindTo(window.CurrentDisplayBindable);
windowModes.BindTo(window.SupportedWindowModes);
window.DisplaysChanged += onDisplaysChanged; window.DisplaysChanged += onDisplaysChanged;
} }
@ -87,7 +86,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
windowModeDropdown = new SettingsDropdown<WindowMode> windowModeDropdown = new SettingsDropdown<WindowMode>
{ {
LabelText = GraphicsSettingsStrings.ScreenMode, LabelText = GraphicsSettingsStrings.ScreenMode,
ItemSource = windowModes, Items = window?.SupportedWindowModes,
Current = config.GetBindable<WindowMode>(FrameworkSetting.WindowMode), Current = config.GetBindable<WindowMode>(FrameworkSetting.WindowMode),
}, },
displayDropdown = new DisplaySettingsDropdown displayDropdown = new DisplaySettingsDropdown