Fixed window resizing when entering and leaving fullscreen mode
parent
7cf76ffbe0
commit
8f8070db42
|
@ -451,12 +451,6 @@ GetWindowStyle(SDL_Window * window)
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)windowWillExitFullScreen:(NSNotification *)aNotification
|
- (void)windowWillExitFullScreen:(NSNotification *)aNotification
|
||||||
{
|
|
||||||
isFullscreen = NO;
|
|
||||||
inFullscreenTransition = YES;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)windowDidExitFullScreen:(NSNotification *)aNotification
|
|
||||||
{
|
{
|
||||||
SDL_Window *window = _data->window;
|
SDL_Window *window = _data->window;
|
||||||
NSWindow *nswindow = _data->nswindow;
|
NSWindow *nswindow = _data->nswindow;
|
||||||
|
@ -464,6 +458,15 @@ GetWindowStyle(SDL_Window * window)
|
||||||
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||||
[nswindow setStyleMask:GetWindowStyle(window)];
|
[nswindow setStyleMask:GetWindowStyle(window)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isFullscreen = NO;
|
||||||
|
inFullscreenTransition = YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)windowDidExitFullScreen:(NSNotification *)aNotification
|
||||||
|
{
|
||||||
|
NSWindow *nswindow = _data->nswindow;
|
||||||
|
|
||||||
inFullscreenTransition = NO;
|
inFullscreenTransition = NO;
|
||||||
|
|
||||||
if (pendingWindowOperation == PENDING_OPERATION_ENTER_FULLSCREEN) {
|
if (pendingWindowOperation == PENDING_OPERATION_ENTER_FULLSCREEN) {
|
||||||
|
|
Loading…
Reference in New Issue