Skip to content

Commit

Permalink
Use !FrameworkEnvironment.UseSDL3 instead of removing warning altog…
Browse files Browse the repository at this point in the history
…ether
  • Loading branch information
peppy committed Nov 20, 2024
1 parent c852cf9 commit b4077fc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion osu.Game/Overlays/Settings/Sections/Graphics/LayoutSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,16 @@ private void updateDisplaySettingsVisibility()

private void updateScreenModeWarning()
{
if (RuntimeInfo.OS == RuntimeInfo.Platform.macOS)
// Can be removed once we stop supporting SDL2.
if (!FrameworkEnvironment.UseSDL3)
{
if (windowModeDropdown.Current.Value == WindowMode.Fullscreen)
windowModeDropdown.SetNoticeText(LayoutSettingsStrings.FullscreenMacOSNote, true);
else
windowModeDropdown.ClearNoticeText();

return;
}

if (windowModeDropdown.Current.Value != WindowMode.Fullscreen)
{
Expand Down

0 comments on commit b4077fc

Please sign in to comment.