Skip to content

Commit

Permalink
Fix rotation crash in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hwsmm committed Feb 12, 2024
1 parent cce5fee commit d7dfd76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Framework/Platform/SDL2Window_Windowing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,13 @@ private void handleWindowEvent(SDL.SDL_WindowEvent evtWindow)
case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_FOCUS_LOST:
case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_SHOWN:
case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_HIDDEN:
case SDL.SDL_WindowEventID.SDL_WINDOWEVENT_SIZE_CHANGED when RuntimeInfo.IsMobile:
fetchDisplays();
break;
}

Logger.Log("got window event " + evtWindow.windowEvent);

#if DEBUG
EventScheduler.AddOnce(() => assertDisplaysMatchSDL());
#endif
Expand Down

0 comments on commit d7dfd76

Please sign in to comment.