Skip to content

Commit

Permalink
Revert "Don't store windowed size when in fullscreen"
Browse files Browse the repository at this point in the history
This reverts commit 63b05d4.
  • Loading branch information
Susko3 committed Nov 25, 2024
1 parent 63b05d4 commit 282f21a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions osu.Framework/Platform/SDL3/SDL3Window_Windowing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using System.Linq;
using osu.Framework.Bindables;
using osu.Framework.Configuration;
using osu.Framework.Extensions.EnumExtensions;
using osu.Framework.Logging;
using osuTK;
using SDL;
Expand Down Expand Up @@ -786,9 +785,9 @@ private void storeWindowPositionToConfig()
/// </remarks>
private bool updatingWindowStateAndSize;

private unsafe void storeWindowSizeToConfig()
private void storeWindowSizeToConfig()
{
if (WindowState != WindowState.Normal || SDL_GetWindowFlags(SDLWindowHandle).HasFlagFast(SDL_WindowFlags.SDL_WINDOW_FULLSCREEN))
if (WindowState != WindowState.Normal)
return;

storingSizeToConfig = true;
Expand Down

0 comments on commit 282f21a

Please sign in to comment.