mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-26 05:01:07 +00:00
Made sure the window had the correct border when manually being brought back from fullscreen mode.
This commit is contained in:
parent
cb190b8270
commit
7459b159e0
|
@ -460,7 +460,10 @@ GetWindowStyle(SDL_Window * window)
|
||||||
NSWindow *nswindow = _data->nswindow;
|
NSWindow *nswindow = _data->nswindow;
|
||||||
|
|
||||||
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||||
|
Uint32 flags = window->flags;
|
||||||
|
window->flags &= ~SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||||
[nswindow setStyleMask:GetWindowStyle(window)];
|
[nswindow setStyleMask:GetWindowStyle(window)];
|
||||||
|
window->flags = flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
isFullscreen = NO;
|
isFullscreen = NO;
|
||||||
|
|
Loading…
Reference in a new issue