Use `macOS` instead of `IsApple` for better safety

This commit is contained in:
Salman Ahmed 2022-06-03 10:32:43 +03:00
parent 1a835f0622
commit 3ad1180c48
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ protected override IDictionary<FrameworkSetting, object> GetFrameworkConfigDefau
{
// General expectation that osu! starts in fullscreen by default (also gives the most predictable performance).
// However, macOS is bound to have issues when using exclusive fullscreen as it takes full control away from OS, therefore borderless is default there.
{ FrameworkSetting.WindowMode, RuntimeInfo.IsApple ? WindowMode.Borderless : WindowMode.Fullscreen }
{ FrameworkSetting.WindowMode, RuntimeInfo.OS == RuntimeInfo.Platform.macOS ? WindowMode.Borderless : WindowMode.Fullscreen }
};
}