-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6389 from hwsmm/sdl3-bindings-update
Update SDL3-CS
- Loading branch information
Showing
11 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using SDL; | ||
using static SDL.SDL3; | ||
|
||
namespace osu.Framework.Platform.SDL3 | ||
|
@@ -18,8 +17,8 @@ protected override unsafe void UpdateWindowStateAndSize(WindowState state, Displ | |
// this reset is required even on changing from one fullscreen resolution to another. | ||
// if it is not included, the GL context will not get the correct size. | ||
// this is mentioned by multiple sources as an SDL issue, which seems to resolve by similar means (see https://discourse.libsdl.org/t/sdl-setwindowsize-does-not-work-in-fullscreen/20711/4). | ||
SDL_SetWindowBordered(SDLWindowHandle, SDL_bool.SDL_TRUE); | ||
SDL_SetWindowFullscreen(SDLWindowHandle, SDL_bool.SDL_FALSE); | ||
SDL_SetWindowBordered(SDLWindowHandle, true); | ||
SDL_SetWindowFullscreen(SDLWindowHandle, false); | ||
SDL_RestoreWindow(SDLWindowHandle); | ||
|
||
base.UpdateWindowStateAndSize(state, display, displayMode); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using SDL; | ||
using static SDL.SDL3; | ||
|
||
namespace osu.Framework.Platform.SDL3 | ||
|
@@ -16,7 +15,7 @@ public SDL3MobileWindow(GraphicsSurfaceType surfaceType, string appName) | |
protected override unsafe void UpdateWindowStateAndSize(WindowState state, Display display, DisplayMode displayMode) | ||
{ | ||
// This sets the status bar to hidden. | ||
SDL_SetWindowFullscreen(SDLWindowHandle, SDL_bool.SDL_TRUE); | ||
SDL_SetWindowFullscreen(SDLWindowHandle, true); | ||
|
||
// Don't run base logic at all. Let's keep things simple. | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters