mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 13:35:31 +00:00
Fixed window resizing when entering and leaving fullscreen mode
This commit is contained in:
parent
7cf76ffbe0
commit
8f8070db42
|
@ -451,12 +451,6 @@ GetWindowStyle(SDL_Window * window)
|
|||
}
|
||||
|
||||
- (void)windowWillExitFullScreen:(NSNotification *)aNotification
|
||||
{
|
||||
isFullscreen = NO;
|
||||
inFullscreenTransition = YES;
|
||||
}
|
||||
|
||||
- (void)windowDidExitFullScreen:(NSNotification *)aNotification
|
||||
{
|
||||
SDL_Window *window = _data->window;
|
||||
NSWindow *nswindow = _data->nswindow;
|
||||
|
@ -464,6 +458,15 @@ GetWindowStyle(SDL_Window * window)
|
|||
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||
[nswindow setStyleMask:GetWindowStyle(window)];
|
||||
}
|
||||
|
||||
isFullscreen = NO;
|
||||
inFullscreenTransition = YES;
|
||||
}
|
||||
|
||||
- (void)windowDidExitFullScreen:(NSNotification *)aNotification
|
||||
{
|
||||
NSWindow *nswindow = _data->nswindow;
|
||||
|
||||
inFullscreenTransition = NO;
|
||||
|
||||
if (pendingWindowOperation == PENDING_OPERATION_ENTER_FULLSCREEN) {
|
||||
|
|
Loading…
Reference in a new issue