From 0baee3e6768c8e4a227bb4eacee5a8bc70afc2dd Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 12 Dec 2023 12:25:51 -0800 Subject: [PATCH] Reversed test to be easier to read, more efficient, and match other code --- src/video/cocoa/SDL_cocoawindow.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 9115e65fd..a2482cf8a 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -2210,7 +2210,7 @@ void Cocoa_SetWindowSize(SDL_VideoDevice *_this, SDL_Window *window) } /* isZoomed always returns true if the window is not resizable */ - if (!Cocoa_IsZoomed(window) || !(window->flags & SDL_WINDOW_RESIZABLE)) { + if (!(window->flags & SDL_WINDOW_RESIZABLE) || !Cocoa_IsZoomed(window)) { if (!(window->flags & SDL_WINDOW_FULLSCREEN)) { [nswindow setFrame:[nswindow frameRectForContentRect:rect] display:YES]; ScheduleContextUpdates(windata);