1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 11:27:24 +08:00

added code to OsuGameBase to default to fullscreen, but that might not be a good place to put it.

This commit is contained in:
Owen Young 2021-03-22 20:17:05 -05:00
parent 8ea7271d5c
commit bdcb9451f7

View File

@ -21,6 +21,7 @@ using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Graphics.Cursor;
using osu.Game.Online.API;
using osu.Framework.Configuration;
using osu.Framework.Graphics.Performance;
using osu.Framework.Graphics.Textures;
using osu.Framework.Input;
@ -119,6 +120,7 @@ namespace osu.Game
protected Bindable<WorkingBeatmap> Beatmap { get; private set; } // cached via load() method
private Bindable<bool> fpsDisplayVisible;
private Bindable<WindowMode> windowMode;
public virtual Version AssemblyVersion => Assembly.GetEntryAssembly()?.GetName().Version ?? new Version();
@ -361,6 +363,9 @@ namespace osu.Game
fpsDisplayVisible.ValueChanged += visible => { FrameStatistics.Value = visible.NewValue ? FrameStatisticsMode.Minimal : FrameStatisticsMode.None; };
fpsDisplayVisible.TriggerChange();
windowMode = LocalConfig.GetBindable<WindowMode>(OsuSetting.WindowSetting);
windowMode.Value = WindowMode.Fullscreen;
FrameStatistics.ValueChanged += e => fpsDisplayVisible.Value = e.NewValue != FrameStatisticsMode.None;
}