first attempt at changing windowMode to be fullscreen on default

This commit is contained in:
owen-young 2021-03-21 21:50:19 -05:00
parent 716b9048c1
commit f7bf23dbe9

View File

@ -126,6 +126,8 @@ namespace osu.Game
private Bindable<int> configSkin;
private Bindable<WindowMode> windowMode;
private readonly string[] args;
private readonly List<OverlayContainer> overlays = new List<OverlayContainer>();
@ -631,6 +633,12 @@ namespace osu.Game
loadComponentSingleFile(volume = new VolumeOverlay(), leftFloatingOverlayContent.Add, true);
frameworkConfig.GetBindable<WindowMode>(FrameworkSetting.WindowMode);
windowMode.BindValueChanged(mode => ScheduleAfterChildren(() =>
{
windowMode.Value = WindowMode.Windowed;
}), true);
var onScreenDisplay = new OnScreenDisplay();
onScreenDisplay.BeginTracking(this, frameworkConfig);