mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 14:56:00 +00:00
Fixed window resizing when entering and leaving fullscreen mode
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user