1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 13:37:25 +08:00

Update location of FullscreenCapability bindable

This commit is contained in:
Dan Balasescu 2022-09-22 21:01:23 +09:00
parent 445e026a32
commit 6a0047b7a2
2 changed files with 4 additions and 4 deletions

View File

@ -73,8 +73,8 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
windowModes.BindTo(host.Window.SupportedWindowModes); windowModes.BindTo(host.Window.SupportedWindowModes);
} }
if (host.Window is WindowsWindow windowsWindow) if (host.Renderer is IWindowsRenderer windowsRenderer)
fullscreenCapability.BindTo(windowsWindow.FullscreenCapability); fullscreenCapability.BindTo(windowsRenderer.FullscreenCapability);
Children = new Drawable[] Children = new Drawable[]
{ {

View File

@ -261,8 +261,8 @@ namespace osu.Game.Screens.Utility
string exclusive = "unknown"; string exclusive = "unknown";
if (host.Window is WindowsWindow windowsWindow) if (host.Renderer is IWindowsRenderer windowsRenderer)
exclusive = windowsWindow.FullscreenCapability.ToString(); exclusive = windowsRenderer.FullscreenCapability.ToString();
statusText.Clear(); statusText.Clear();